Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2007-11-30
2
Medium Priority
?
2,457 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 31

Accepted Solution

by:
James Murrell earned 375 total points
ID: 20382698
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
ID: 20388378
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

636 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