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 2000 Forums
 Transact-SQL (2000)
 Uppercase conversion to Mixed Case

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-08-19 : 08:00:20
Rick writes "An update query was run in error against a table and updated a text field using the upper(fieldname option). We wish to revert this text back to the mixed case format that it previously had. Example - the data value "the oak tree" should be stored as
"The Oak Tree"

Appreciate any ideas, thanks."

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-08-19 : 08:02:47
You should do this type of updates with
Begin Transaction
If you are satisfied with the result you can commit it otherwise rollback it

If you have backup, then restore it

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2005-08-19 : 08:39:11
Or you could perhaps restore the backup to a temporary database, compare the columns and where the data is the same (case insensitive) but different (case sensitive) replace the current data with that from the restored database

Kristen
Go to Top of Page
   

- Advertisement -