SQL Express Database Backup Script

Can you provide a simple script that backs up a SQL 2012 Express database?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
I recommend you to use the one provided by Microsoft here. The article also shows how to schedule the script to run automatically.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Phillip MonkIT ManagerCommented:
Ola Hallengren's scripts are my personal go to when backing up SQL. They can be found here:
Vitor MontalvãoMSSQL Senior EngineerCommented:
Ola's script doesn't work on SQL Express. It needs SQL Agent, that's not exists in SQL Express.
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

IDMAAuthor Commented:
I have been trying the MS script without luck.  I keep receiving this error:

Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '/'.
Vitor MontalvãoMSSQL Senior EngineerCommented:
Oh, remove those 3 first lines that starts with //. It's only a remark from Microsoft that's their script.
Phillip MonkIT ManagerCommented:
Closed due to inactivity
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.