Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-09-20 : 07:23:50
|
| Ali writes "Hi, I've used the code below to search in MS-SQL Server use northwind; select * from Employees where lastname = 'FuLLeR';I expect the result to be null, but the query returns One Row, Fuller. I am running Microsoft SQL Server 2000 Developer Version On MS-Windows XP SP-2. Is it any way to make the query CASE SENSITIVE?To be honest i'm using the Microsoft SQL Server 2000 Programming by Example Book and I'm beginning Trrigers Today.With my warmest regards,AliIran" |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2006-09-20 : 07:31:15
|
| Use COLLATE clause to specify Case-sensitive collation in where clause as follows:Select * from Employeeswhere lastname collate SQL_Latin1_General_CP850_CS_AS = 'FuLLeR'Harsh AthalyeIndia."Nothing is Impossible" |
 |
|
|
|
|
|