Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Migrating everything BUT data from SQL2000 to SQL2005

Status
Not open for further replies.

lmohr79

Technical User
Jan 18, 2005
39
US
I'm setting up a SQL2005 database on a test server (fairly small) and need to copy/migrate an existing SQL2000 db to the new server. But the SQL2K db is much to large for the test server.

Is there a way I can create/copy everything BUT the data (schema, permissions, etc.)? One of the things I'm testing is the import of data, so no problem to start with empty tables.

FYI - I've learned everything I need to know about SQL under fire, so if this is simple, please just pat me on the head and spoon feed me.

If I screw up the test server, no worries, it's a virtual machine, so back up SHOULD BE easy.

Thank you!
 
Use Enterprise manager on the the SQL 2000 box to generate scripts for you. Make sure you script everything. There is no option to script data, so there's no need to worry about that. What you will end up with is a script that you can run on your sql 2k5 box that creates everything from the DB to the tables, views, indexes, procedures, etc...




-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Thanks for the help - question - should I run the "Method 2" script first? I was having problems with the initial script referenced by gmmastros, so created a second script on the SQL2K box w/o the "Script SQL Server logins", but now getting errors about valid logins.
 
You have to tweak the script by making changes so that it points to your logins on your server,and this script is only to transfer your Logins/Roles from 2k to 2005.
But to transfer stps, views etc except for data whatever
gmmastros mentioned should help you, if thats not working check your scripts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top