Solved

How can I change collation on tempdb, master db without rebuild of other dbs?

Posted on 2007-11-30
2
2,446 Views
Last Modified: 2008-02-01
Hi all,
I have an instance of sql-2005.  All of the user db's were migrated from an sql-2000 instance, and they all have a collation of SQL_Latin1_General_CP1_CI_AS.

Yet the person who had previously set up this new instance had set it up with the collation Latin1_General_CI_AI.

Because of this I sometimes get collation errors, and from what I've read it's mostly due to sorting temp tables in the tempdb.  So is is possible to change the tempdb collation, or is that based on the master or model db's collation?  And if so, can I change either of those collations (without rebuilding all user dbs)?

Bottom line is I'm just looking for the easiest way to maintain the SQL_Latin1_General_CP1_CI_AS collation in my user db's and avoid the collation errors.  I have a terabyte or so of user db's and I want to avoid the downtime of backup/restore of those just to change a collation on the instance.  What's the best way to achieve this?
Thanks,
Jim
0
Comment
Question by:jimojimo
2 Comments
 
LVL 31

Accepted Solution

by:
James Murrell earned 125 total points
Comment Utility
this might help/point in right direction http://www.ssw.com.au/SSW/KB/KB.aspx?KBID=Q711843
0
 
LVL 1

Author Comment

by:jimojimo
Comment Utility
cs97,
Thanks, I will try that and see if it works with the Tempdb.  All my user db's are in the 'correct' collation (that is, the collation I've chosen), it's just the server that has it's 'default' collation different from my user db collations.

 I'll try what you're link suggests--but without renaming/re-importing the user db's--just changing the default collation and restarting the server.  I would assume that since tempdb is recreated at server startup then it should be recreated with the new default collation, which I'll set to my 'correct' collation.

I'm still not sure if the Master db collation--which I assume will retain the 'in-correct' collation--will cause any of the error messages.  It's my understanding that the master shouldn't matter for sorting, temp tables, etc, but I'm wondering if anyone could shed light on that,
--Jim
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now