Barkingdog
SSCoach
Points: 18670
More actions
October 22, 2001 at 8:24 pm
#77550
How can I use VBScript (and DMO) to stop the SQL Service service on a remote SQL 7 machine, copy trans logs from that machine, and then restart the SQL service?
Andy Warren
SSC Guru
Points: 119902
October 23, 2001 at 5:55 am
#419198
Here is a starting point for you. See what you can do with this:
On Error Resume Next
Set oServer = New SQLDMO.SQLServer
With oServer
.LoginSecure = True
.Connect "."
.Shutdown
End With
Set oServer = Nothing
'do the file copy here
oServer.Start False, "."
Andy
AndySQLAndy - My Blog!Connect with me on LinkedInFollow me on Twitter
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply