Solved

SQL 2005 Best Way to Backup Database

Posted on 2014-11-06
7
20 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:
ScottPletcher 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 69

Expert Comment

by:ScottPletcher
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 45

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

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.

Join & Write a Comment

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now