check collation setting
____________________________________________
1.SELECT DATABASEPROPERTYEX('<database name>', 'Collation')
2.SQL Server Management Studio, choose DB, Choose Database Properties-> Options -> Collation
BIN = Binary.
CI = Case insensitive,
AI = Access insensitive,
CS = Case sensitive,
AS = Accent sensitive.
Some collations also has
WS and KS for Width and Kana sensitive. The latter mainly applies to
Japanese collations I believe.
Changing Collation Settings After Installing
--------------------------------------------
Collation settings, which include character set, sort order, and other locale-specific settings, are fundamental to the structure of all Microsoft? SQL Server? 2000 databases. To change one or more of these settings, you must rebuild the master and user databases.
How to rebuild the master database (Rebuild Master utility)
-----------------------------------------------------------
For SQL 200,To rebuild the master database
Shutdown Microsoft? SQL Server? 2000, and then run Rebuildm.exe. This is located in the Program Files/Microsoft SQL Server/80/Tools/Binn directory.
In the Rebuild Master dialog box, click Browse.
In the Browse for Folder dialog box, select the /Data folder on the SQL Server 2000 compact disc or in the shared network directory from which SQL Server 2000 was installed, and then click OK.
Click Settings. In the Collation Settings dialog box, verify or change settings used for the master database and all other databases.
Initially, the default collation settings are shown, but these may not match the collation selected during setup. You can select the same settings used during setup or select new collation settings. When done, click OK.
In the Rebuild Master dialog box, click Rebuild to start the process.
The Rebuild Master utility reinstalls the master database.
Note To continue, you may need to stop a server that is running.
For SQL 2005 , run the setup.exe to rebuild.