Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing constraints
Message
De
25/03/2011 10:43:41
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Scripting
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01504936
Message ID:
01504986
Vues:
30
>Your script is not protected against invalid table names. You should use QUOTENAME() function
>
>Select 'ALTER TABLE '+ QUOTENAME(tab.name) + ' DROP CONSTRAINT '+sysobjects.name
>
You are correct. I usually put every table name between [] in script in case this is a reserved name. It is still a mystery that this is working as is on two servers but not on the production one where the three of them have the identical database, with the same OS version.

I will make the adjustment and next week, I will be able to confirm if this has resolved the issue.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform