Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
pravin14u
Posting Yak Master
246 Posts |
Posted - 2007-10-15 : 07:59:04
|
| How to remove the constraints on a table in sql server 2000? I need to drop the column, so i need to drop the constraint before that.Alter Table Table_Name NO CHECK constraints ALL.Once I execute the above one, it says, "Successfully Executed" but when I try to drop it doesnt allow me and gives me the following error:Server: Msg 5074, Level 16, State 1, Line 1The object 'DF_Users_Created_by' is dependent on column 'CREATED_BY'.Server: Msg 4922, Level 16, State 1, Line 1ALTER TABLE DROP COLUMN CREATED_BY failed because one or more objects access this column.Any ideas?Thanks, |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
Kristen
Test
22859 Posts |
Posted - 2007-10-15 : 08:29:09
|
Just like a Number 11 bus, eh?!!The third one will be along in a minute ... |
 |
|
|
|
|
|