Back Up Data to an Operating System File

To back up data into an operating system file, perform the following steps:

  1. Use bcp to copy the data from the table into a file. For information about bcp, refer to bcp in the Adaptive Server utility programs manual for your platform.

  2. Drop and re-create the table.

  3. Use bcp to copy the file into the re-created table.

  4. Recreate all views, triggers, stored procedures, constraints, defaults, and so on that referenced the table.

NoteIf there are space constraints, and the table needs a clustered index, consider creating the index before adding the data to the table, then run update statistics after the data is added.