|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
transfer database between two servers which don't want to talkAll I want is to trasfer the data in one SQL server 2000 installation to
another. Unfortunately, I can't get them to talk due to these computers existing in different domains, and assorted related obstacles. I can however transfer files between the computers. I need to copy tables, and views. I would like to copy roles and stored procedures, but I can rebuild those if absolutely necessary. Can anyone help? Am Mon, 5 Jun 2006 11:35:32 -0400 schrieb Alan Baljeu:
> All I want is to trasfer the data in one SQL server 2000 installation to Data, stored procs, views, trigger, all this you have in a backup. Make a> another. Unfortunately, I can't get them to talk due to these computers > existing in different domains, and assorted related obstacles. I can > however transfer files between the computers. > > I need to copy tables, and views. I would like to copy roles and stored > procedures, but I can rebuild those if absolutely necessary. Can anyone > help? full backup and send this file per FTP, mail whatever you want to the other computer. On the target computer create a new empty database and make a restore, using this backup. What you have to do by hand is the security part (login, grants, ..). Easiest way is doing all with Enterprise Manager. bye, Helmut >> I need to copy tables, and views. I would like to copy roles and stored Thanks for the suggestion. After investigating this, I found an even easier >> procedures, but I can rebuild those if absolutely necessary. Can anyone >> help? > > Data, stored procs, views, trigger, all this you have in a backup. Make a > full backup and send this file per FTP, mail whatever you want to the > other > computer. On the target computer create a new empty database and make a > restore, using this backup. What you have to do by hand is the security > part (login, grants, ..). Easiest way is doing all with Enterprise > Manager. approach: I took the database offline, copied the database files, and then brought the copies online at the new computer. This works perfectly. Alan Baljeu (alanb@cornerstoneSPAMBLOCKmold.com) writes:
> Thanks for the suggestion. After investigating this, I found an even Note that it is likely that user-login mappings gets out of whack when> easier approach: I took the database offline, copied the database files, > and then brought the copies online at the new computer. This works > perfectly. you do this. You can use sp_change_users_login to adress this. See Books Online for details. -- Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx There are two advantages to using the backup/restore process. The first
is that the backup process (using SQL Server Agent) does not require taking the source database off line. You *will* have to take the target database off line.... The second is that it's a smaller file and will transfer quicker.... Plus you have a good backup of the db. Regards, Hank Arnold Alan Baljeu wrote: Show quote >>> I need to copy tables, and views. I would like to copy roles and stored >>> procedures, but I can rebuild those if absolutely necessary. Can anyone >>> help? >> Data, stored procs, views, trigger, all this you have in a backup. Make a >> full backup and send this file per FTP, mail whatever you want to the >> other >> computer. On the target computer create a new empty database and make a >> restore, using this backup. What you have to do by hand is the security >> part (login, grants, ..). Easiest way is doing all with Enterprise >> Manager. > > Thanks for the suggestion. After investigating this, I found an even easier > approach: I took the database offline, copied the database files, and then > brought the copies online at the new computer. This works perfectly. > > |
|||||||||||||||||||||||