Solved

SQL 2008 R2 Backup

Posted on 2013-12-19
4
333 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

813 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

17 Experts available now in Live!

Get 1:1 Help Now