Solved

Restoring a SQL Server database

Posted on 2000-03-14
5
738 Views
Last Modified: 2010-08-05

I'm trying to restore a database from a file saved on a different server.
When I hit restore I get:
The database you are attempting to load was dumped under a different sort order ID(50) than the one currently on this server(52) and at least one of them is a non binary sort order.

How do I restore my database?
0
Comment
Question by:davidcawkwell
  • 2
  • 2
5 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2616364
You need a separate server where your Sort Order is BINARY SORT ORDER.
There you restore your database, back it up again and use that backup to restore at your destination server.
0
 

Author Comment

by:davidcawkwell
ID: 2616413
Dont understand.
What do I have to do to get this to work? On either server?
How do I change the sort order?
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 50 total points
ID: 2616438
You need a separate NT Server machine on which you install SQL Server, choosing BINARY SORT ORDER during Setup, as this setting can ONLY be set during this moment.

On this brand new SQL Server you can restore your database, in order to back it up again (the backup file will then contain the BINARY SORT ORDER indication.

Use this new backup to restore in on the SQL Server you wanted to restore your database initally.
0
 
LVL 1

Expert Comment

by:jboyd
ID: 2616447
You have to reinstall SQL Server on one of the servers with the matching sort order. Here is a quote from the online books, in a section titled "Before Installing: Checklist", "Select a character set, sort order, and Unicode collation. If you need to change any of these later, you must rebuild the databases and reload the data. It is recommended that you develop a standard within your organization for these options. Many server-to-server activities may fail if the character set, sort order, and Unicode collation are not consistent across servers. " If you do not want to re-install and the database is fairly small, you could script out the database and BCP the data, or use DTS to move the database.
0
 

Author Comment

by:davidcawkwell
ID: 2616688
That's done it.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Need Counts 11 40
how to fix this error 14 46
Backup Job question 4 19
how to eliminate duplicates in a string variable in t-sql? 30 42
Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

706 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

19 Experts available now in Live!

Get 1:1 Help Now