dbTalk Databases Forums  

Pros and Cons of CASE SENSITIVE COLLATION SETTINGS

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Pros and Cons of CASE SENSITIVE COLLATION SETTINGS in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rogers
 
Posts: n/a

Default Pros and Cons of CASE SENSITIVE COLLATION SETTINGS - 02-19-2009 , 09:39 AM






Dear Professionals,

I would appreciate if anyone can give me pros and cons of SQL Server
COLLATION Settings at database or column levels.

Thanks


Reply With Quote
  #2  
Old   
William Vaughn \(MVP\)
 
Posts: n/a

Default Re: Pros and Cons of CASE SENSITIVE COLLATION SETTINGS - 02-19-2009 , 11:41 PM






Using case-sensitive collation at the database level is a royal PIA. It
means that every single object, every single TSQL statement must be correct
case-wise. Don't do it. On the other hand, having a specific column set to
case-sensitive often makes sense.

--
__________________________________________________ ________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker’s Guide to Visual Studio and SQL Server (7th Edition)
http://betav.com http://betav.com/blog/billva
__________________________________________________ __________________________________________



"Rogers" <Rogers (AT) discussions (DOT) microsoft.com> wrote

Quote:
Dear Professionals,

I would appreciate if anyone can give me pros and cons of SQL Server
COLLATION Settings at database or column levels.

Thanks


Reply With Quote
  #3  
Old   
Russell Fields
 
Posts: n/a

Default Re: Pros and Cons of CASE SENSITIVE COLLATION SETTINGS - 02-20-2009 , 09:45 AM



Rogers,

William Vaughn told you why you should not.

So, is there any good reason to use a database (or server level) Case
Sensitive collation? Yes, if you are creating code to be deployed on
servers and/or databases where you have no control over the collation. (I
have a couple of BINARY collation servers that cause me some problems.)

Developing in Case Sensitive will ensure that you go through the pain of
correcting every last case problem before you deploy to other servers. (On
the other hand, it will not catch the less likely problem of two items named
the same except for case. E.g. tables named Drought and DrOught.)

FWIW,
RLF


"Rogers" <Rogers (AT) discussions (DOT) microsoft.com> wrote

Quote:
Dear Professionals,

I would appreciate if anyone can give me pros and cons of SQL Server
COLLATION Settings at database or column levels.

Thanks



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.