You are here: Re: changing records in tables « MsSQL Server « IT news, forums, messages
Re: changing records in tables

Posted by Erland Sommarskog on 07/12/06 21:58

Martin Lukasik (marcin@milea.pl.i.hate.this.spam) writes:
> I was just wondering... Is there any built-in function in MS SQL, which
> will allow me to do rows' "capitalisation"?
> Lets say that in database.table.name I've got:
> "FOO BAR LTD.", which I want to change to "Foo Bar Ltd."
> "Foo bar LTD.", which I want to be "Foo Bar Ltd.".
> Is there any way of doing this or do I have to read it from database,
> change in some script, and then insert it back into the table?

No, there is no built in for this. You could write your own scalar
UDF for this.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация