Copy MDF and LDF files while SQL running?

As a backup precaution, can we just copy all our SQL MDF and LDF files to another computer on the network periodically?

Can you copy these files without shutting down SQL  (ie while they are still Attached Databases).
Who is Participating?
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.

<< (ie while they are still Attached Databases).>>


You can perform backups and store them.


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
Sirees is correct. Your best solution is to schedule a daily backup. If this is a critical application you need to run frequent log file backups. The more frequent your log file backups the less data you will loose in a disaster.
VolibrawlAuthor Commented:
Where / how do you schedule daily backups and "frequent" log backups.  I am a novice at this ...   Is there a backup scheduling Wizard or something?

We have 2005 Management Studio.

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Easiest way is to right mouse click on the database, select the options you want (i.e. Overwrite all existincg backups etc...)

Click the Script button. Copy the script.

Go to Management > SQL Server Agent > Jobs -- Right click on Jobs, select New Job
Enter name, select category (just informational)
Select Steps, New... > Name the step
Type should be T-SQL
Paste Backup job script in command screen and select OK
Select Schedules > add New... > configure your schedule...

That should get you where you need to be.

Take advantage of Books On Line (Help) ... its very good.
Nop, you can do a Maintenance Plan without more problems, with that wizard, you'll get all the jobs that you need.
Well, I think that you must do a full backup of your database daily and differential backups during the day, of course, for each full backup you'll need a backup of your log and for each differential backup you'll need a log backup.
Anthony PerkinsCommented:
>>We have 2005 Management Studio.<<
Which Edition of SQL Server 2005 are you using?  Enterprise, Standard, Developer, Express, ...?
VolibrawlAuthor Commented:
try this...

CopySharp is a GUI tool for copying open/inprocess/lock files. It is inspired by robocopy and vshadow.

CopySharp V1.0 requires .Net Framework 3.5 and VC++ 2005 Runtime. CopySharp V1.0 requires Microsoft® Windows® Server 2003, Microsoft® Windows® XP.

For Example:
1. Try to backup/copy your .pst file(s), while your outlook is open.
2. Try to backup/copy your .mdf/.ldf (SQL Server) files, while your SQL Server is running.  

Locate it at:
VolibrawlAuthor Commented:
Thanks  for responding  .. although I have already adopted a different backup strategy, which works fine, I appreciate the advice.

Your utilities look great ... thanks for developing them.
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
Microsoft SQL Server 2005

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.