Re: Binary collation
From: Michael Bauers (MichaelBauers_at_discussions.microsoft.com)
Date: 11/16/04
- Next message: Keith Kratochvil: "Re: SQL Server Standards Documentation"
- Previous message: MANCPOLYMAN: "SQL Server Standards Documentation"
- In reply to: Michael Thomas [Microsoft]: "Re: Binary collation"
- Next in thread: Bart Duncan [MSFT]: "Re: Binary collation"
- Reply: Bart Duncan [MSFT]: "Re: Binary collation"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Nov 2004 12:24:02 -0800
What if the values come from another table (not constant values.)
"Michael Thomas [Microsoft]" wrote:
> Hello Michael,
>
> Did you try to cast the value to binary? Here's a sample i've just written:
>
> create table mytable (Col1 nvarchar(20));
>
> insert into mytable values (N'Die Nuß, die Nüsse');
>
> select CAST ( Col1 AS binary (40)) from mytable
>
>
>
>
>
> The query will return the following value as binary. Note that there is no
> collation on binary.
>
>
>
> 0x44006900650020004E007500DF002C00200064006900650020004E00FC0073007300650000
> 000000
>
>
> "Michael Bauers" <MichaelBauers@discussions.microsoft.com> wrote in message
> news:54F4F3E1-0FD9-4209-9301-1182139A7DC1@microsoft.com...
> > Is there a code page independent binary collation? I want a collation
> that
> > will sort binary order that will not force translations from other
> collations.
> >
> > My problem is this: I want the user to be able to use any collation they
> > want. My process is going to work with their data in binary order. Even
> if
> > I could retrieve the collation they used, I don't know how to, in a
> program,
> > to convert that collation into a binary collation. For some collations,
> its
> > obvious. If their collation was SQL_CZECH_CP1350_CI_AS I could probably
> > construct Czech_BIN from that.
>
>
>
- Next message: Keith Kratochvil: "Re: SQL Server Standards Documentation"
- Previous message: MANCPOLYMAN: "SQL Server Standards Documentation"
- In reply to: Michael Thomas [Microsoft]: "Re: Binary collation"
- Next in thread: Bart Duncan [MSFT]: "Re: Binary collation"
- Reply: Bart Duncan [MSFT]: "Re: Binary collation"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|