Web Development
Discussion Locked
0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a SQL Server 7.0 table with char(200) fields. If a row has a ? in it and another row has a ? in it, a select * from table where field = '?', will return both rows even though ? is ASCII code 232 and ? is ASCII code 200. Why does this occur?
3 replies
by leebutler1
The short answer : it happens because your SQL server was set up to be "case-insensitive". This causes the behavior you described. It also allows you to do other things, like ignore case when typing your login id and password, and ignore case whentyping the words SELECT, FROM, WHERE, etc...
This is how most MS SQL servers are set up. You could change the behavior, but I believe you have to re-build the SQL server and reload all the data.
by jim.schromm
Thanks. I didn't set this server up. I would have thought that the case sensitivity for data would be a different setting than the case sensitivity for the software.
by jim.schromm
This question was closed by the author
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
1 helpful
13 replies
0 helpful
3 replies
1 helpful
4 replies
0 helpful
0 replies
0 helpful
0 replies