Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 HELP! Database exporting or replacing

Author  Topic 

hdoddnoble
Starting Member

1 Post

Posted - 2005-09-12 : 21:39:38
Hi

I have created a database on my PC using VS.NET 2005 Beta and SQL Server Express 2005. I now want to place this website on my internet hosting server. For example, my server is SQL5.WEBCONTROLCENTER.COM and my database is called mydatab and i have on my PC a database called origdb. How do i send origdb to the server on the web replacing mydatab?
I have Visual Studio 2005 and SQL Express Manager 2005.

Many Thanks

Harry Dodd-Noble

nr
SQLTeam MVY

12543 Posts

Posted - 2005-09-17 : 18:54:05
Depends what's available.
Best would be to basckup the database, ftp the file and restore.
Otherwise try dmo as in
http://www.mindsdoor.net/DMO/SQL-DMOTransfer.html

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2005-09-18 : 02:44:07
RESTORE would be best, as Nigel said. Assuming that is not available I would be inclined to SCRIPT the origdb in Enterprise Manager, create your new, empty, database and then run the script to build the empty tables etc.

Then I would use DTS to get the data up there.

The Foreign Keys and Triggers will probably get in your way, so I would remove them from the original script [or explicitly DROP them before importing the data] and create them after the data has been imported.

Create database
Create tables etc. [everything except FKs and Triggers]
Import data
Create FKs
Create Triggers

EDIT: I made an assuption that you are familiar with DTS and not with DMO. If you haven't used DTS then going down Nigel's DMO route would be best IMO

Kristen
Go to Top of Page
   

- Advertisement -