Groups | Blog | Home
all groups > sql server (alternate) > march 2007 >

sql server (alternate) : Case sensitivity in SQL -- ignore



sweetpotatop NO[at]SPAM yahoo.com
3/14/2007 11:59:03 AM
Hi,

I believe my SQL server was configured as Case sensitivity. I have a
number of stored procedures which were moved from a non-Case
sensitivity SQL server. Because of the Case sensitivity, I have to do
a lot of editing in those stored procedures. Is there a quick way to
avoid the editing?

Something like ignoring the case in one statement?

Thanks in advance, your advice will be greatly appreciated.
M A Srinivas
3/14/2007 10:42:00 PM
[quoted text, click to view]

I think by changing the collation of your database to case
insenstitvity may help
but this may cause problems when you create #temp tables as tempdb
will have server collation

If your column and table names are in lower case , you can modify the
SP by selecting the SP and changing to lowercase (SHIFT+CTRL+L) . But
if you have string constants which need to be in uppercase , you need
to change it accordingly

M A Srinivas
--CELKO--
3/16/2007 7:45:48 AM
[quoted text, click to view]

As it should be; that is how Standard SQL is defined

[quoted text, click to view]

Life is tough when someone screws up. You need to just do it right
and stop looking for kludges. Oh, and if yuou can kill them guy that
did this, you will probably improve the quality of your company's
software in other places as well.
AddThis Social Bookmark Button