Single Table BACK Up

  • Hi

    How do take the single table backup plz help me....

    plz help me ....

  • You can't take a single table backup, per se. You can export a table using the export wizard or BCP.

  • thanku very much...

  • Or if you're looking to just make a quick copy of the data..

    SELECT * INTO dbo.tblname_backup_date FROM dbo.tblname

    I do this regularly before a data update happens that could potentially mess things up. Just make sure you get rid of your backup tables after you're sure you don't need them any more.

  • If you export the data, you do not really export the metadata. you need you take note of the constraints, indexes, defaults etc.

  • If your table is on a seperate filegroup, you can back up the filegroup

  • BaddaBing (8/27/2010)


    If your table is on a seperate filegroup, you can back up the filegroup

    After that how he will restore??

  • Partial Restore etc

  • You can backup and restore from a filegroup, but you need a full backup on which to base this. I'm not sure a filegroup backup would fit well in this situation.

    http://msdn.microsoft.com/en-us/library/ms189860%28v=SQL.100%29.aspx

    If this is read only data, then perhaps, but otherwise, I would just export the data. I'm assuming you mean the data is important here, not all the PK/FK/constraints.

  • Point well made (and taken)...:-)

  • Not a recommended idea, but you can also do this!

    export that single table into a sample DB (just created for this purpose)

    and then backup that DB , by this way there will be only one object in that DB , its ur table and the meta data all the constriant will also be present.:-)

Viewing 11 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic. Login to reply