Solved

SQL 2008 R2 Backup

Posted on 2013-12-19
4
329 Views
Last Modified: 2013-12-27
Is it possible to create  a backup script on SQL 2008R2 such that it will backup a single table in the SQL2008R2 database and remove all its data to release the disk space ?

Is it possible for the backup to store on a network drive ?

Tks
0
Comment
Question by:AXISHK
  • 2
4 Comments
 
LVL 19

Assisted Solution

by:jss1199
jss1199 earned 250 total points
ID: 39729339
You can not backup/restore single objects in SQL Server 2008, to my knowledge.  You can move the data into a seperate database that you create for such a purpose, such as:

SELECT * INTO new_backup_dbname.dbo.TABLENAME_BACKUP 
FROM src_db_name.dbo.TABLENAME

Open in new window

and then TRUNCATE TABLE src_db_name.dbo.TABLENAME

You could then have a  SQL Backup job scheduled to backup the new_backup_dbname database
0
 

Author Comment

by:AXISHK
ID: 39729435
How to put all these into a batch and scheduled under SQL server ? Any further guideline ?

Tks
0
 
LVL 10

Accepted Solution

by:
sqlservr earned 250 total points
ID: 39737550
0
 

Author Closing Comment

by:AXISHK
ID: 39743061
Tks
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
In this article I will describe the Detach & Attach 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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 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

21 Experts available now in Live!

Get 1:1 Help Now