Link to home
Start Free TrialLog in
Avatar of tbailey922
tbailey922

asked on

Sql Server Collation

My current sql server db is sql_latin1_general_cp1_ci_as......I need to change it to sql_latin1_general_pref_cp1_ci_as.


Any ideas on which collation to select when installing Sql Server 2000?  There are tons to choose from and I can't seem to get the right one.  

Thanks

Tim
Avatar of Sirees
Sirees

ALTER DATABASE Pubs COLLATE sql_latin1_general_pref_cp1_ci_as
GO
Avatar of tbailey922

ASKER

I have to change the master db.....is it the same?
For your database you can do as:

ALTER DATABASE yourdatabasename COLLATE sql_latin1_general_pref_cp1_ci_as
GO
Avatar of Aneesh
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_da_819v.asp

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

ASKER CERTIFIED SOLUTION
Avatar of Sirees
Sirees

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial