You can set case sensitivity. It's known as COLLATION.
First run this:
SELECT CASE
WHEN ('A' = 'a') THEN 0
ELSE 1
END
That will tell you whether your environment is case sensitive (1) or not case sensitive (0).
Then run ALTER DATABASE to set the collation to what you want it to be. Refer to the Books OnLine for more information. Use the Index tab and enter:
case-sensitive instance of SQL Server
I've tried this on one of our binary databases (ie ALTER DATABASE X SQL_Latin1_General_CP1_CS_AS) and it fails on about 2100 objects (check contraint objects).
Also, if this was successful, would it actually make the table names and field names as well as the data case-insentive ie you could do a select query on any case for the table, field and data and it would yield results where in case-sensitive, it would not?
I was told the only way to truly change a database to case-insensitive is to either DTS into a case-insentive db or use bcp becuase the indexes do not get changed thus queries won't change.
Note that SQL_Latin1_General_CP1_CS_AS is CS (case sensitive) and AS (accent sensitive)
You have to alter database to the right collation and then update all columns (from syscolumns) to the right collation.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.