Backup/Recovery of DATABASE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanjay gupta
    New Member
    • Sep 2006
    • 1

    Backup/Recovery of DATABASE

    I want to take backup/restore of SQL database from asp, can you help me to do so?
  • phpmaet
    New Member
    • Sep 2006
    • 27

    #2
    hi,
    you should use the following queries in your asp code.

    BACKUP LOG <dbname>
    TO DISK = 'c:\backup\TLOG .bak'
    WITH NO_TRUNCATE



    RESTORE DATABASE <dbname>
    FROM DISK = 'c:\backups\nwi nd\nwind_diff.b ak'
    WITH RECOVERY

    thanks

    Comment

    Working...