Thank this author by sharing:
By Orestes Zoupanos,
Generates "check this foreign key" statements for all untrusted foreign keys on a server.
P.S. apologies for my use of sp_MSforeachdb :-P
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.