11

I have read the following article. They have quoted that,

SQL Server is a case-sensitive back-end application. This means that a table named "addr" is distinguished from a table named "ADDR." However, because Microsoft Query is an MS-DOS-based application, it is unable to distinguish cases; therefore, Microsoft Query views "addr" and "ADDR" as the same file.

Now I wanted to know what to they mean by case-sensitive back-end application? Is it safe to use the query with case-insensitivity?

Thanks in advance.

4
  • 8
    It depends on the default collation of the database whether object names are treated as case sensitive or not. That document is very old BTW! Sep 17, 2011 at 13:15
  • 6
    To be safe, you should always use the correct case for object and column names. You never know when your code or your database will be changed or migrated to a case-sensitive collation. In fact I often advocate developing on a case-sensitive collation to help prevent preventable errors later. Sep 17, 2011 at 13:28
  • That article is very old (the information is from around 1995) and is now incorrect.
    – gbn
    Sep 17, 2011 at 14:09
  • 3
    You've missed their Retired KB Content Disclaimer: This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
    – Andriy M
    Sep 18, 2011 at 0:07

1 Answer 1

14

SQL Server with default collation will return you the same result, doesn't matter which case you use for your query.

Collation can be set at various levels

  1. Server
  2. Database
  3. Column

For more info can be found out here

Please check Applies To section of the article you referenced. KB article applies to product from Microsoft for which they no longer provide any support.

1
  • Quite irrelevant based on the quoted KB article, sorry
    – gbn
    Sep 18, 2011 at 13:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.