How to backup a single table with data in a database

11 July,2014 by Jack Vamvas

Question: How can I backup a single table with data in a database ? I need a quick method to save the data as I’d like to make changes to the original table, without backing up the whole database.

Answer: A simple method to backup the whole table is:

select * into  dbo.new_table from dbo.old_table

For backup of specific Column Data in the table

 select Col1, Col2
 into dbo.new_table
 from dbo.old_table

To backup to an Excel spreadsheet – read SQL Server Export to Excel with Powershell

Read More

Export-CSV Powershell - SQL Server DBA

Powershell - run script on all sql servers - SQL Server DBA

 

 


Author: Jack Vamvas (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How to backup a single table with data in a database


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer