Thread: Very Urgent

  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Rep Power

    Unhappy Very Urgent

    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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Apr 2002
    Rep Power
    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.
    Attached Files

IMN logo majestic logo threadwatch logo seochat tools logo