Is it possible to case-sensitively compare 2 varchar column values
without changing the collation on the column to case-sensitive? For
example, I have column called Note on a table called Operation, and I'd
like to select distinct note, case-sensitively, without changing the
collation.
Possible?
-KJ<n_o_s_p_a__m@.mail.com> wrote in message
news:1135287389.111343.321820@.g47g2000cwa.googlegroups.com...
> Is it possible to case-sensitively compare 2 varchar column values
> without changing the collation on the column to case-sensitive? For
> example, I have column called Note on a table called Operation, and I'd
> like to select distinct note, case-sensitively, without changing the
> collation.
> Possible?
> -KJ
>
SELECT columnlist
FROM tablename
JOIN tablename
WHERE col1 COLLATE <collation name> = col2 COLLATE <collation name>
Rick Sawtell|||you can specify a collation on the select
e.g. [using pubs.authors out of the box]
use pubs
update authors
set au_lname = 'ringer' -- only duplicated last name
where au_id='899-46-2035'
select distinct au_lname collate SQL_Latin1_General_CP1_CS_AS
from authors
-- 23 rows return
select distinct au_lname
from authors
-- 22 rows return
n_o_s_p_a__m@.mail.com wrote:
> Is it possible to case-sensitively compare 2 varchar column values
> without changing the collation on the column to case-sensitive? For
> example, I have column called Note on a table called Operation, and I'd
> like to select distinct note, case-sensitively, without changing the
> collation.
> Possible?
> -KJ
>|||Thanks, Rick and Trey, for the quick and accurate replies!
-KJ
Showing posts with label changing. Show all posts
Showing posts with label changing. Show all posts
Tuesday, March 20, 2012
Friday, February 24, 2012
Communication between SQL6.5 and SQL200
Hi!
I'm in a fix, we're changing domains and I need to communicate between SQL6.5 and SQL200 for a short while.
Both servers reside in the same domain (at the moment) so all I want to do is communicate between 6.5 and 2000.
There seems to be a problem with that...
Is this a common problem?
WCS is to install 2000 on all machines, but time is agains me. I will get to that evenually.
Any ideas?
The communication I want is to access data in a table in SQL2000 using a SP on the sql2000 server. The call is invoced by a SP on SQL6.5.
Anu ideas?
Thanks!
/BixProblem solved!
And as I can see it, there was no problem...
It worked just as it's supposed to do, but I had other errors to handle first.
/Bix
I'm in a fix, we're changing domains and I need to communicate between SQL6.5 and SQL200 for a short while.
Both servers reside in the same domain (at the moment) so all I want to do is communicate between 6.5 and 2000.
There seems to be a problem with that...
Is this a common problem?
WCS is to install 2000 on all machines, but time is agains me. I will get to that evenually.
Any ideas?
The communication I want is to access data in a table in SQL2000 using a SP on the sql2000 server. The call is invoced by a SP on SQL6.5.
Anu ideas?
Thanks!
/BixProblem solved!
And as I can see it, there was no problem...
It worked just as it's supposed to do, but I had other errors to handle first.
/Bix
Subscribe to:
Posts (Atom)