[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 11674
  • Last Modified:

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).
0
Volibrawl
Asked:
Volibrawl
  • 3
  • 2
  • 2
  • +3
2 Solutions
 
SireesCommented:
<< (ie while they are still Attached Databases).>>

No.

You can perform backups and store them.

0
 
Atlanta_MikeCommented:
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.
0
 
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.

0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

 
Atlanta_MikeCommented:
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.
0
 
eozz_2000Commented:
Nop, you can do a Maintenance Plan without more problems, with that wizard, you'll get all the jobs that you need.
0
 
eozz_2000Commented:
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.
0
 
Anthony PerkinsCommented:
>>We have 2005 Management Studio.<<
Which Edition of SQL Server 2005 are you using?  Enterprise, Standard, Developer, Express, ...?
0
 
VolibrawlAuthor Commented:
Standard.
0
 
amit_aryCommented:
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: http://www.amitchaudhary.com/
0
 
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.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now