?
Solved

SQL 2008 R2 Backup

Posted on 2013-12-19
4
Medium Priority
?
343 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
[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
  • 2
4 Comments
 
LVL 19

Assisted Solution

by:jss1199
jss1199 earned 1000 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:
Ramesh Babu Vavilla earned 1000 total points
ID: 39737550
0
 

Author Closing Comment

by:AXISHK
ID: 39743061
Tks
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

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
In this article I will describe the Backup & Restore 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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

762 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