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 |
|
sql777
Constraint Violating Yak Guru
314 Posts |
Posted - 2005-04-17 : 13:03:52
|
| Hi,I added some FK contraints to my database on the tables, is it possible to remove all these FK relations with a single script or is this a manual job? |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-04-17 : 13:10:29
|
| Do you want to drop them allseeINFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS Just write a script to run a drop on each constraint.Get the table from parent_obj in sysobjects.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|