March 6, 2006 at 3:25 am
hello every body,
I am tryin to develop import export utility like that is provided with SQL Server 2000,it would be useful when there will only MSDE is installed.
I cant use SQLDMO`s Back up and Restore functionality as it is for local Instances. I tryin to use link server way but struggling use with all databases.
I am not able to import data from database to given database.
What r other possible ways of doing the above?
regards
tak
March 6, 2006 at 6:48 am
your program would simply call the TSQL commands for backup and restore via TSQL;
Get the list of databases that could be backed up:
SELECT * FROM master.dbo.sysdatabases; that has the name and the file path to the database.
See the BOL for syntax examples of backup and restore, it's very simple. BACKUP DATABASE MyNwind TO MyNwind_1
you could do this using a ADODB command object or a simply call connection.execute(sql) in vb6,
or an executenonquery from a SQL data provider for .NET.
hope that helps.
Lowell
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply