Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SQL 2005 Best Way to Backup Database

Posted on 2014-11-06
7
Medium Priority
?
51 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 70

Accepted Solution

by:
Scott Pletcher earned 500 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 500 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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
LVL 70

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 500 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 52

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 500 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
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.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

722 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