Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Backup and restore one table
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 6.5 and older
Application:
Web
Divers
Thread ID:
01583196
Message ID:
01583201
Vues:
46
- In the same db as old_table
- the same structure as old table

Did you need backup only data or data and table structure with indexes, triggers, FKs?
IF NOT OBJECT_ID('new_table') DROP TABLE new_table
SELECT *
  INTO new_table
  FROM old_table
MartinaJ


>First, thank you. Where does the 'new_table' gets saved? And what format would it be?
>
>>
>>SELECT *
>>  INTO new_table
>>  FROM old_table
>>
>>
>>MartinaJ
>>
>>>I need to do some testing of changing records in one table. I anticipate many trial and and error runs. So I would like to backup the table before each test and then restore. What is the easiest way to backup just one table and restore it?
>>>TIA.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform