Home Article SQL Server Changing the TemDB Collation 
Changing the TemDB Collation PDF Print E-mail
User Rating: / 0
PoorBest 
SQL Server - Articles
Written by S. Singh   

Hi All, 

Today i received a problem from one of the DBA, His problem was unique, he wanted to change the collation setting of tempdb to Japanese_BIN.

At first this seems to be a normal issue, but soon i realized this is something which is not known to many, So i decided to document the solution here, this may prove to be a life saver for someone:

Problem: "I want to change the tempdb collation in MSSQL sever. 
i am getting the below error.. 
alter database [tempdb] collate Japanese_BIN 
Server: Msg 3708, Level 16, State 5, Line 1 
Cannot alter the database 'tempdb' because it is a system database.

http://www.sqlproblems.com

Solution: Changing the tempdb Collation 
The collation of tempdb cannot be changed by using the ALTER DATABASE statement—SQL Server does not allow this since tempdb is part of the system database. 

Note: that tempdb uses the collation of the model database. Since there is a way to change the collation of the model database, we inferred that we should be able to change the collation of tempdb. Recall that the model database can be backed up and restored. 

So, for example, if we have another instance of SQL Server running with a default collation of Japanese_BIN, we can back up the model database from the “Japanese_BIN” server, restore it on the target server, and then restart the MSSQL service on the target server. 

Another solution can be reinstalling SQL Engine using collation setting you need. 

Thanks & Regards,         
Sarabpreet Singh

Comments
RSS
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 

S. Singh

 

Sarabpreet’s Seven years of enriched experience and intellectual skills, have provided him an edge over the others by way of endowing him an opportunity to work and grow along with industry leaders. The keen urge of continuously learning and growing to evolve himself and being adaptable to changing environment has proved to be a milestone for his carrier by way of doing certification for database administrator from the I.T Industry leader Microsoft. His core competency lies in administration of SQL Server 2000, 2005 & 2008.
Presently Sarabpreet is working as a Freelancer and provides support to Multiple Clients Handles more than 90 servers & 800+ Databases, all responsibilities related to same such as Designing High Availability Database Solutions Clustering, Log-shipping and Mirroring, Backup\ Restore (Disaster Management), Automating SQL Server monitoring and improving current processes, Identifying performance bottlenecks and providing improvement recommendations, Installation and configuration of SQL 2000 and 2005 cluster, Configuring and troubleshooting backup/DR jobs, Implementing database change requests received from developers, Resolving performance issues, performance tuning, Database Administration and resolving day-to-day issues.

Sarabpreet’s Seven years of enriched experience and intellectual skills, have provided him an edge over the others by way of endowing him an opportunity to work and grow along with industry leaders. The keen urge of continuously learning and growing to evolve himself and being adaptable to changing environment has proved to be a milestone for his carrier by way of doing certification for database administrator from the I.T Industry leader Microsoft. His core competency lies in administration of SQL Server 2000, 2005 & 2008. 

 

                                            Presently Sarabpreet is working as a Freelancer and provides support to Multiple Clients Handles more than 90 servers & 800+ Databases, all responsibilities related to same such as Designing High Availability Database Solutions Clustering, Log-shipping and Mirroring, Backup\ Restore (Disaster Management), Automating SQL Server monitoring and improving current processes, Identifying performance bottlenecks and providing improvement recommendations, Installation and configuration of SQL 2000 and 2005 cluster, Configuring and troubleshooting backup/DR jobs, Implementing database change requests received from developers, Resolving performance issues, performance tuning, Database Administration and resolving day-to-day issues.


Statistics

Content View Hits : 63187

Powered by Solutions-Guru.com!. Designed by: budget hosting reseller hosting packages Valid XHTML and CSS.