By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,575 Members | 1,948 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,575 IT Pros & Developers. It's quick & easy.

How do you change the default encoding on SQL server?

100+
P: 384
I'm wondering how you change the default encoding on SQL server and also how do you change the encoding on existing tables in a SQL DB?
Jul 28 '09 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 145
Do you mean change the default collation for new databases? Change the collation of the model database:
Expand|Select|Wrap|Line Numbers
  1. USE [master]
  2. GO
  3. ALTER DATABASE [model] COLLATE [SomeNewCollation]
  4. GO
  5.  
Change the Collation for a single database:
Expand|Select|Wrap|Line Numbers
  1. USE [master]
  2. GO
  3. ALTER DATABASE [MyDB] COLLATE [MyNewCollation]
  4. GO
  5.  
Jul 29 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.