Solved

SQL 2005 Best Way to Backup Database

Posted on 2014-11-06
7
36 Views
Last Modified: 2016-06-15
We have a Server 2008 OS running Microsoft SQL 2005. What is the best way to stop the SQL database and make a backup of the log file? It is only 1 database from a software called AIM. We want this automated so it can run nightly without us having to do anything. We are using Syncback for the backup process to our Server.
0
Comment
Question by:WNC1
7 Comments
 

Author Comment

by:WNC1
ID: 40427020
We went though SQL to make the backup a few minutes ago. We noticed that it would only allow the backup to go to the C: Drive of the Server. Is there anyway to change that? The C: drive only has 30GB free, so 2 or 3 backups would fill that up. We were going to backup the database to a mapped drive on another server, but when selected the location we can only pick the C: Drive. Is this a limitation of SQL 2005?
0
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 125 total points
ID: 40427324
No, that's definitely not a limitation of SQL 2005.  You can backup to any valid drive that SQL has access to, even using a unc/share folder.
0
 
LVL 2

Assisted Solution

by:Beth Kludt
Beth Kludt earned 125 total points
ID: 40427450
I don't believe SQL Server can back up to a mapped drive.  You need to access the drive with its unc name such as \\servernameorIP\drive\folder.

Also, why do you want to stop SQL Server in order to do a log backup?  SQL Server backups are done online, generally without significant impact to ongoing processes.
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 69

Expert Comment

by:Scott Pletcher
ID: 40427521
True, not a mapped drive, but any drive that is validly available to SQL.
0
 
LVL 8

Assisted Solution

by:mikainz
mikainz earned 125 total points
ID: 40427874
You can use the Task Scheduler for automation together with the SQLCMD command, which lets you execute the BACKUP DATABASE SQL-Command against the database stored on a UNC Folder.
0
 
LVL 47

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 125 total points
ID: 40427989
. What is the best way to stop the SQL database and make a backup of the log file?
The best way is not to stop SQL Server. Why you need to stop it?

We noticed that it would only allow the backup to go to the C: Drive of the Server.
That's because you are using the GUI (SSMS) to perform the backup. You can run BACKUP command to point to a network share:
BACKUP LOG DatabaseNameHere 
TO DISK = '\\DatabaseName.TRN'

Open in new window

0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question