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
 SQL Server Administration (2005)
 CASE SENSETIVE

Author  Topic 

sqlserverdbam
Yak Posting Veteran

54 Posts

Posted - 2008-11-12 : 10:55:38
Hi,

I migrated SQL2000 to SQL2005. Some of query is not running due to CASE SENSETIVE. The query which works in SQL2000 is not working in SQL2005 Like

select * from emp where empname like '%DS%' -Working fine in sql2000

select * from emp where empname like '%DS%' -Working fine in sql2005
Showing diffrent result set

Is there any way I can turn off CASE SENSETIVITY in SQL2005? OR Is there any way I can configure SQL2005 sql compatable with SQL2000?

Please advice.
Thanks

-

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-12 : 11:05:42
yup. use a case sensitive collation for that. see below

http://blog.sqlauthority.com/2007/04/30/case-sensitive-sql-query-search/
Go to Top of Page

sqlserverdbam
Yak Posting Veteran

54 Posts

Posted - 2008-11-12 : 14:48:51
Can I change Collation of the SQL Server master database in SQL2005?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-12 : 23:09:06
quote:
Originally posted by sqlserverdbam

Can I change Collation of the SQL Server master database in SQL2005?


no need to change collation. just cast it different collation using COLLATE as shown in link
Go to Top of Page
   

- Advertisement -