Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename Table?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00943527
Message ID:
00943536
Vues:
13
This message has been marked as the solution to the initial question of the thread.
James,

Check sp_rename system sproc.

>Is there a way to rename a SQL table from a Stored Procedure?
>
>I have a production table [TNDL]. I want to populate a temporary table [TEMP] with 6 million records, truncate the Production table [TNDL], then rename the Production table from [TNDL] to [DELETED], rename the [TEMP] table to [TNDL], then rename the [DELETED] table to [TEMP] so I can do it again next month.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform