Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SET EXACT ON in MSSQL

Posted on 2001-07-11
2
Medium Priority
?
696 Views
Last Modified: 2008-02-01
Is that any similar command in MSSQL like Oracle SET EXACT ON/OFF so that case-sensitive query can be performed in case-insensitive database instance.
0
Comment
Question by:chnelson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
acampoma earned 80 total points
ID: 6275809
You can only convert to varbinary to use case sensitivity
Be sure to do the same where clause without the varbinary conversion to use indexes before finding actual values.
where Name = 'John'
and convert(vabinary(20),Name) = convert(vabinary(20),'John')

0
 
LVL 1

Author Comment

by:chnelson
ID: 6275956
what's brilliant idea!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question