Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Upper case to Lower Case

Author  Topic 

vikramabn
Starting Member

1 Post

Posted - 2007-08-09 : 14:55:47
I have to write a query to update the records in database.

Example of the record.

KANSASCITY_10SDDM1_Missouri

Record should get into lower case that is before underscore "_" means still "KANSASCITY_" but not after underscore

Kansascity_10SD1_Missouri

Can somebody please help me to update this one, I have 1000's of records to get updated.

Thanks


SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-08-09 : 15:00:32
Read about LOWER and CHARINDEX functions in Books Online.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -