Hi Vince,

Checkout the COLLATE keyword.

You can do:
   SELECT * FROM mytable WHERE COLLATE SQL_Latin1_General_CP1252_CS_AS
myfield = 'bla'

The CS_AS bit is important, CS = case sensitive.  AS = accent sensitive

Paul

On 9 April 2013 22:36, Vincent Teachout <[email protected]> wrote:

> I have data in a file that was supposed to be proper case: "Expense",
> "Indemnity".  I accidentally loaded some of them as "EXPENSE" and
> "INDEMNITY".
>
> Not a big problem, but just out of curiosity, I wanted to see a listing of
> all 4 types - proper and upper case for each of the 2 types.
>
> When I ran "Select distinct myfield from myfile", only "Expense" and
> "Indemnity" showed up.  And when I did a replace where Myfield = 'EXPENSE',
> it updated all records.
>
> The problem is resolved, but is there some command in SQL to honor case,
> or something I need to set in SQL Server (Although, usually I DON'T want
> case sensitive).
>


-- 
Paul


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cadwx0++egd0i5hzscl7fj0oa1g_9tjir4b_hktlpq70+ope...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to