developing Import export utility

  • 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

  • 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply