Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drop object ?
Message
De
31/07/2003 11:48:14
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00815406
Message ID:
00815439
Vues:
9
Hi Sergey,

for simplified recreation of one sql object
( i have developer a VFP_MSQL integrated framework support builder ).

Before CREATE ... i need:
IF (SELECT OBJECT_ID('objectName')) IS NOT NULL 
  DROP <OBJECTTYPECLAUSE> objectName

CREATE <OBJECTTYPECLAUSE>
Better it would be :
  DROP objectName -- SQL ignore command if objectName not exist
Best of the Best ( like on CREATE INDEX )
CREATE TABLE TableName ... WITH DROP_EXISTING
You known where found new MSQL Yukon TSQL language enhancement ?

Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform