Solved

SQL 2005 Best Way to Backup Database

Posted on 2014-11-06
7
43 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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 48

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
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

820 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