Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Single table backup using sqlcmd Expand / Collapse
Author
Message
Posted Tuesday, January 31, 2012 2:06 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, November 28, 2014 6:32 AM
Points: 3, Visits: 106
I need to take a single table backup using sqlcmd???? How can i take a backup of particular table using sqlcmd??
Post #1244125
Posted Tuesday, January 31, 2012 2:50 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, February 1, 2012 9:59 AM
Points: 28, Visits: 59
There is no option to backup on table level. but you can use select * into to copy the table data and definition. other option is you can move the table into different filegroup and take filegroup backup.

With Sqlcmd you can copy the to run a query and just save the output to a file

sqlcmd -Q "SELECT * FROM AdventureWorks2008R2.Person.Person" -o MyOutput.txt
Post #1244156
Posted Tuesday, January 31, 2012 3:02 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, November 28, 2014 6:32 AM
Points: 3, Visits: 106
How can move table into filegroup and take a backup from that???

Please explain
Post #1244163
Posted Tuesday, January 31, 2012 3:10 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, February 1, 2012 9:59 AM
Points: 28, Visits: 59
kamleshsinhchauhan (1/31/2012)
How can move table into filegroup and take a backup from that???

Please explain


Here is the steps to move table to different group

http://www.sqlservercentral.com/articles/Administration/64275/
Post #1244166
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse