Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy Folder
Message
From
24/02/2017 02:43:35
 
 
To
24/02/2017 01:24:09
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01648453
Message ID:
01648455
Views:
46
In general you don't want to try to copy the actual .MDF/.LDF files that represent your SQL Server database(s). If you try to do that you'll hit "file in use" errors such as you're seeing. Instead, use SQL Server's built-in backup function to create separate backup files, and then save those backup files someplace safe.

This is a task well suited to the SQL Agent:

https://blogs.msdn.microsoft.com/sqlagent/2010/10/12/create-a-database-backup-job-using-sql-server-management-studio/

https://blogs.msdn.microsoft.com/sqlagent/2010/10/14/creating-a-regularly-scheduled-job/

UPDATE: sorry, I had a bad link in the original post.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform