mcclunyboy
Registered User.
- Local time
- Today, 07:17
- Joined
- Sep 8, 2009
- Messages
- 292
Hi,
I am trying to automate the backup of 2 SQL Server 2000 databases.
We currently have middleware to complete the backups but I am hoping to ensure it is done automatically.
Basically Enterprise manager is not installed and I need to use a batch file and windows scheduled task to complete the backup.
Can someone either provide me with an example batch file or tell me what I have to do:
The SQL I think I need is :
"Use Master
GO
BACKUP DATABASE "mydb"
TO "c:\backups"
WITH FORMAT, CHECKSUM
GO"
I need to use OSQL and call that initially but I am not sure about it at all...
Any help is appreciated?
I am trying to automate the backup of 2 SQL Server 2000 databases.
We currently have middleware to complete the backups but I am hoping to ensure it is done automatically.
Basically Enterprise manager is not installed and I need to use a batch file and windows scheduled task to complete the backup.
Can someone either provide me with an example batch file or tell me what I have to do:
The SQL I think I need is :
"Use Master
GO
BACKUP DATABASE "mydb"
TO "c:\backups"
WITH FORMAT, CHECKSUM
GO"
I need to use OSQL and call that initially but I am not sure about it at all...
Any help is appreciated?