Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turning off case sensitive search 1

Status
Not open for further replies.

dmilgram

Technical User
Jan 11, 2000
2
0
0
US
How does one indicate that the key search in a particular column is not case sensitive? Currently,one has to get the case exactly right in order for a match on a query to work. How does one make SQL ignore case in specific columns?
 
As far as I remember its an option in the setup of SS. <br>
<br>
You can rerun the setup again without overwriting your databases.
 
You cannot make specific columns case-insensitive, only your whole server.<br>
<br>
If you run 'sp_helpsort' it will tell you all about your charset and sort order. The default is case-insensitive and I would be surprised if yours is case-sensitive, if so then it was changed for a reason.<br>
<br>
The sort order can be changed by re-running the install, but you will need to rebuild your database and reload your data....<br>
<br>
I tended to get round it by using the UPPER function, e.g.<br>
<br>
SELECT Cust_details from customer<br>
where UPPER(Custname) = &quot;BLOGGS&quot;<br>
<br>
This may however stop the index being used and reduce performance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top