Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing constraints
Message
From
25/03/2011 10:43:41
 
General information
Forum:
Microsoft SQL Server
Category:
Scripting
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01504936
Message ID:
01504986
Views:
28
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform