October 7th, 2003, 10:56 AM
Need to compose a dynamic sql statement to grab whatever invalid objects existing in a instance and compose the compile statements for those invalid objects as the output file? Basically what we need is to run this script to generate the compile script to recompile those invalid database objects.
October 7th, 2003, 12:23 PM
I'll help you this time, but users of the board tend to not reply when people put things like 'urgent' in the title. In the future take a look at the sticky 'How to Post'...
A meaningful title helps others in the future get help as well.
the code I have attached is a stored proc to compile the invalid objects, it relies on a brute force approach instead of walking the dependency tree.