Re: Changing collation -- URGENT
From: Uri Dimant (urid_at_iscar.co.il)
Date: 03/03/04
- Next message: Jacco Schalkwijk: "Re: Changing collation -- URGENT"
- Previous message: Sunil: "OLAP Provider problem"
- In reply to: GYK: "Changing collation -- URGENT"
- Next in thread: Jacco Schalkwijk: "Re: Changing collation -- URGENT"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 3 Mar 2004 13:34:35 +0200
Gyk
BOL says
You can also use the COLLATE clause on an ALTER DATABASE to change the
default collation of the database:
ALTER DATABASE MyDatabase COLLATE French_CI_AS
Altering the default collation of a database does not change the collations
of the columns in any existing user-defined tables. These can be changed
with ALTER TABLE. The COLLATE CLAUSE on an ALTER DATABASE statement changes:
CREATE TABLE MyTable
(PrimaryKey int PRIMARY KEY,
CharCol varchar(10) COLLATE French_CI_AS NOT NULL
)
GO
ALTER TABLE MyTable ALTER COLUMN CharCol
varchar(10)COLLATE Latin1_General_CI_AS NOT NULL
GO
"GYK" <anonymous@discussions.microsoft.com> wrote in message
news:DCC92136-EE54-41F7-83ED-A07AC7BADDCC@microsoft.com...
> Hi,
>
> I need an urgent help.
>
> I have a database backup file with 30,000 tables, which has a particular
collation SQL_Latin1_General_CP1_CI_AS.
> Now I need to restore this database on a different server (srv2), but with
different collation Latin1_General_BIN.
> So I created a database on srv2 with Latin1_General_BIN collation. But
When I tried to restore it from the backup file, am getting all the tables
with SQL_Latin1_General_CP1_CI_AS collation. I tried to change the database
collation on srv2 to Latin1_General_BIN , but still the collation is the old
one.
>
> Can anybody provide me the solution to this?
>
> Thanks
> GYK
- Next message: Jacco Schalkwijk: "Re: Changing collation -- URGENT"
- Previous message: Sunil: "OLAP Provider problem"
- In reply to: GYK: "Changing collation -- URGENT"
- Next in thread: Jacco Schalkwijk: "Re: Changing collation -- URGENT"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|