Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maintaining SQL tables from VFP
Message
From
12/01/2000 10:54:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Maintaining SQL tables from VFP
Miscellaneous
Thread ID:
00316986
Message ID:
00316986
Views:
57
I am a coding database upgrade program to alter table structure in SQL Server. Here's what I have to do:
1) Determine default constraint name for a given column
2) Drop the constraint
3) Drop the column

It appears that a constraint may be used by multiple columns. Is this true, and if so, how do I disassociate the column from the default constraint?

Also, to determine the constraint name am using sp_helpconstraint and
LOCATE "DEFAULT on column"+lcColumnName. Is there a better way?

Thanks
-Brett
Reply
Map
View

Click here to load this message in the networking platform