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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-02-04 : 09:52:41
|
| Erik writes "HI! I have a problem. I need to transfer tables (and the contents) from a database on one server to a database on another server. I can't use Enterprise Manager on the server I'm transferring the data to. Actually, I only have ASP script access to the destination SQL Server, from a Web server on that network. I tried using the Server.CreateObject("DTS.Package"), but that returns an "Server.CreateObject Failed " error message. The 2 SQL servers are on different networks, run by different companies. Can you help?!?!Thanks,Erik" |
|
|
andre
Constraint Violating Yak Guru
259 Posts |
Posted - 2002-02-04 : 11:44:20
|
| One way is to query the source database data into a recordset in ASP. Then loop through the recordset and use an insert statement or better yet a stored procedure to insert each record into the destination database. This is clearly not the most efficient way, but I can't think of a better alternative if you only have ASP script access to the destination database. |
 |
|
|
|
|
|