web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

Backing Up Database with date in filename

(0) ShareShare
ReportReport
Posted on by

I currently make multiple backups of my database using a sql script (osql -U sa -P password -S Server\sqlexpress -Q "BACKUP DATABASE name TO DISK = 'i:\Storeop.BCK'") Is there a way to have the filename outputted with the date and time intergrated in it? I do not know sql so any help would be great. Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    arishi Profile Picture
    740 on at

    Hello Anthony,

    www.mssqltips.com/.../simple-script-to-backup-all-sql-server-databases

    to learn more about T-SQL

    msdn.microsoft.com/.../aa833212(v=vs.90).aspx

    good luck..

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans