Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my Store procedure i made a check username cannt duplicate insert.

For Ex. i have name prince
and i update Prince

its nt update cause of case sentivity..
how can i solove this problem????

Thanx.
Posted

Normally, SQL Server is case insensitive - and that includes fields.

However it is possible to make individual fields case sensitive, or a database or the whole os SQL server.

Start by checking your field:
In Sql Server Management Studio, right click your table, and select "Design"
Highlight the field, and look at the Properties.
Find "Collation".
Click the "..." button at the right hand side.
Deselect "Case Sensitive", and press OK.
Try your app again.
 
Share this answer
 
Comments
The Doer 13-Mar-12 0:37am    
5! great work...!
When you check whether the username already exists in the database, you must use a case sensitive search. You'll find some methods for doing that in http://vyaskn.tripod.com/case_sensitive_search_in_sql_server.htm[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900