CASE SENSITIVITY IN SQL SERVER 2005

  • Is SQL server 2005 case sensitive? I discovered that the query below doesn't run

    USE AdventureWorks

    SELECT * FROM sales.salesorderheader

    GO

    until I rewrite it as

    USE AdventureWorks

    SELECT * FROM Sales.SalesOrderHeader

    GO

    Thanks for your prompt response.

    Regards,

    Sahoong.

  • Check collation of this database.

    SELECT DATABASEPROPERTYEX('yourDB', 'collation')

  • The 'strict' answer to your question is that SQL Server CAN be case sensitive, depending on the collation. Hence the above question. BOL will define the various collations possible and tell you which are case sensitive, which are not.

    Is this a 'curiousity' question, a potential problem, a real problem, or are you looking to prevent a problem because of case sensitivity?

  • You can also collate tables and columns separately from the database.

  • Thanks for your response. Could you please, give me the code that could be used for collating tables and colums separately? Many thanks. Regards, Sahoong.

  • Thanks for this. It is very helpful.

  • Many thanks. Its borne out of curiosity. Regards.

  • How to change the collation of table and rows seperately???

  • Please check my blog for your reference,

    http://venkattechnicalblog.blogspot.com/2008/07/collation-in-sql-server.html

    Venkatesan Prabu .J

    Thanks and Regards,
    Venkatesan Prabu, 😛
    My Blog:

    http://venkattechnicalblog.blogspot.com/

  • Ratheesh.K.Nair (7/29/2008)


    How to change the collation of table and rows seperately???

    Please elaborate. change collation of table and rows separately from what? each other? or general, overall database?

    btw, I'm also curious about how to do this, other than the 'alter database' command, which has as its scope the entire db.

Viewing 10 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic. Login to reply