[Show all top banners]

sumansuman
Replies to this thread:

More by sumansuman
What people are reading
Subscribers
:: Subscribe
Back to: Computer/IT Refresh page to view new replies
 Tips for SQL Server 2000/2005
[VIEWED 1352 TIMES]
SAVE! for ease of future access.
Posted on 05-13-08 2:17 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Part I

 

If you want to do case sensitive search and if your database is installed on case in-sensitive mode you can do following. I am assuming your language setting is on English mode.

Just a sample OK...

Create table #test (f_name varchar (50))

insert into #test values ('Pranita')

insert into #test values ('pranita')

insert into #test values ('PranitA')

If you do

select f_name from #test where f_name = ‘Pranita’; you will get all values Pranita,pranita and PranitA

Now try this one

select f_name from #test where f_name = 'Pranita'  COLLATE SQL_Latin1_General_CP1_CS_AS

Now you will get only value Pranita not pranita and PranitaA.

 

Continue ...

Last edited: 13-May-08 02:21 PM

 
Posted on 05-13-08 2:43 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

that was already known tips..but keep on posting new tips..
 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 7 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
मन भित्र को पत्रै पत्र!
emergency donation needed
nrn citizenship
जाडो, बा र म……
ढ्याउ गर्दा दसैँको खसी गनाउच
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters