Link to home
Start Free TrialLog in
Avatar of dedri
dedriFlag for United States of America

asked on

sql server express backup schedule

I have a couple of sql server express editions. I want to schedule backups for database on them. Could you tell me how to do it.  Also if the backup fails I want to be notified by email.
ASKER CERTIFIED SOLUTION
Avatar of Rich Weissler
Rich Weissler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could create a scheduled task in WIndows to run a batch file with the following command line:

sqlcmd -E -S servername\sqlexpress –Q "BACKUP DATABASE [dbname] TO DISK='d:\dbname.bak' "

Just change the SQL instance and the dbname and location, and this should backup as expected.

Lee
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial