kiedyś szukałem skryptu do backupu baz mssql,
po wielu poszukiwaniach u wójka google,
znalazłem parę przykładów z których skleiłem coś dla siebie
dzielę się tym z Wami,
servername = diabolo.company.com
backupDir = \\fileserver1.company.com\backup\mssql
set cn = createobject("ADODB.Connection")
set cmd = createobject("ADODB.Command")
set resultat = createobject("ADODB.RecordSet")
cn.open "Provider=SQLOLEDB.1;Data Source=" & serverName & ";Integrated Security=SSPI;Initial Catalog=Master"
cmd.activeconnection = cn
cmd.commandtext = "exec sp_helpdb"
set resultat = cmd.execute
while resultat.eof <> true and resultat.bof <> true
if not resultat("name") = "tempdb" then
backupDatabase resultat("name")
end if
resultat.movenext
end
......aby zobaczyć cały artykuł zaloguj się lub zarejestruj.....














