This stored procedure loops through each user defined Foreign Key and performs an action on that FK, like disabling them or printing its name. Please install this stored procedure in the MASTER database. For full usage instructions and advanced parameters please see the article about it at
http://www.sqlservercentral.com/columnists/bknight/sp_msforeachworker.asp.
.
Shortened version of the usage (there are a lot more parameters that can be seen on the article.):
sp_MSforeachfk @COMMAND1 = "Print '?'"