Today I had a strange situation in the customer database. SQL Server 2005, database sorting is case insensitive, so I can write SQL queries anyway without any problems ... except one. One particular column in one particular table is called "DeadZone". If I ask like this: 'select Deadzone from TableName' - I get a column of an error not found like this: 'select DeadZone from TableName' - it works. Now the kicker, like this: 'select deadZone from TableName' - it works!
Thus, only the βZβ in the column name is case sensitive! I created a similar column name in the same table with "Z" in it, and this column is not case sensitive.
Any ideas? I'm sure I can get around this, possibly dropping and adding a column again, but it would be nice to figure this out. BTW, the database is located on a PC in Hungary, so is it possible that some problems with the Hungarian character are causing this? Remembering that another column name with "Z" in it did not have the same problem.
-Graeme
database sql-server collation
Graeme Aug 26 '11 at 16:08 2011-08-26 16:08
source share