Batch Script To Backup All Your Sql Server Databases
To get right to the point, this is the backup script: Assuming the date is 1/13/2009 and you have 3 databases named ‘MyDB’, ‘AnotherDB’ and ‘DB Name with Spaces’, the script will produce 3 files in the backup location specified: REM Get date in format YYYY-MM-DD (assumes the locale is the United States) FOR /F “tokens=1,2,3,4 delims=/ ” %%A IN (‘Date /T’) DO SET NowDate=%%D-%%B-%%C REM Build a list of databases to backup SET DBList=%SystemDrive%SQLDBList....