dbTalk Databases Forums  

How transfer objects and data from SQL 2000 tot 2008?

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss How transfer objects and data from SQL 2000 tot 2008? in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jan Doggen
 
Posts: n/a

Default How transfer objects and data from SQL 2000 tot 2008? - 12-14-2009 , 11:29 AM






The 2008 SQL server can see the 2000 on a different machine.

- The import/export wizard no longer has 'Copy all objects and data' option.
If I select "all tables" constraints like primary key etc do not copy over.

- If I try a backup/restore Server 2008 complains that it is a backup from a
database "other than the existing one"

Thanks in advance
Jan

================================================== ======================================
http://www.jandoggen.org http://www.beautyofpeople.com
http://www.puddingclub.nl

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: How transfer objects and data from SQL 2000 tot 2008? - 12-14-2009 , 04:34 PM






Jan Doggen (JanDoggenREMOVETHISSPAMBLOCKER (AT) planet (DOT) nl) writes:
Quote:
- If I try a backup/restore Server 2008 complains that it is a backup
from a database "other than the existing one"
To restore a copy of a database, do this:

1) On the source machine, run "sp_helpdb dbtomove", and make note of the
names in the first column.

2) On the target machine, run "sp_helpdb someotherdb", where someotherdb
is a database where the files are located where you want to put the
files of the database you want to restore.

3) Run this command:
RESTORE DATABASE dbtomove FROM DISK = 'filepath'
WITH MOVE 'name1' TO 'path.mdf',
MOVE 'name2' TO 'path.ldf',
REPLACE

name1 and name2 are the names you got from 1. The "path" after TO is a
modified version of the path you got in 2).

I assumed that you used the GUI and was not able to second-guess it. One
can hardly blame you; the GUI is more confusing than helpful. Moreover,
with a script like this, you have something you can reuse.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.