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
 SQL Server Administration (2000)
 Checking Case Sensitivity of SQL Server 2000

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-05-01 : 08:56:15
Mark writes "Looking for a way to check if case sensitivity is enabled on a SQL Server box. I had assumed this option would be returned in sp_serveroption (since it's a server option) but no such luck. I need a way to do this on the fly (as opposed to simply testing out a search on the box). Any thoughts?"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-05-01 : 09:19:57
sp_helpsort should do the trick. It will return the full collation though, you'll need to parse it to determine case sensistivity settings.

Go to Top of Page

rrb
SQLTeam Poet Laureate

1479 Posts

Posted - 2002-12-02 : 01:38:45
or
SELECT CONVERT(char, SERVERPROPERTY('collation'))

cheers

--
I hope that when I die someone will say of me "That guy sure owed me a lot of money"

Edited by - rrb on 12/02/2002 01:39:47
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2002-12-02 : 04:49:22
select case when 'a' = 'A' then 'no' else 'yes' end


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

rrb
SQLTeam Poet Laureate

1479 Posts

Posted - 2002-12-02 : 16:54:20
quote:

select case when 'a' = 'A' then 'no' else 'yes' end



Hey nr - stop that nonsense - you'll put lots of people out of work with that kind of attitude!~

--
I hope that when I die someone will say of me "That guy sure owed me a lot of money"
Go to Top of Page
   

- Advertisement -