how can i connect to sql server by vbs code
and how can i backup or restore from a code
should i use this sql scripts:
BACKUP DATABASE [NORTWIND] TO DISK = N'C:\MSSQL7\BACKUP\NORTHWIND1' WITH NOINIT , NOUNLOAD , NAME = N'NORTHWIND1 backup', SKIP , STATS = 10, NOFORMAT
RESTORE DATABASE [nortwind] FROM DISK = N'C:\MSSQL7\BACKUP\nortHwind1' WITH REPLACE
and how can i backup or restore from a code
should i use this sql scripts:
BACKUP DATABASE [NORTWIND] TO DISK = N'C:\MSSQL7\BACKUP\NORTHWIND1' WITH NOINIT , NOUNLOAD , NAME = N'NORTHWIND1 backup', SKIP , STATS = 10, NOFORMAT
RESTORE DATABASE [nortwind] FROM DISK = N'C:\MSSQL7\BACKUP\nortHwind1' WITH REPLACE