| |
marconi
Posts: 8
Score: 0
Joined: 5/7/2008
Status: offline
|
Original message moved by TNO Reason : Hi, I have 1 maintenance Database Server and 3 Job Servers. I want to take a Backup of SQL Database and restore it on all the 3 Job Servers. I have the following VBScript. But the script is failing with the message "backup failed with message..." --------------------------------------------------------------------------------------------------------------------------------------------- Option Explicit Dim server Dim backup Set server = CreateObject("Microsoft.SQLServer.Management.SMO.Server") Set backup = CreateObject("Microsoft.SQLServer.Management.SMO.Backup") backup.Action = 0 backup.Database = "test_old" backup.SqlBackup(server) ------------------------------------------------------------------------------------------------------------------------------------------------ Request you to please let me know the corrections in my script or a new script to achieve my purpose. Thanks a lot in advance. Best Regards, KiranKumar K.
|
|