• Hi Luis,

    It looks that problem was just in copying script from web page to query window. It added some special characters.

    You can find file with unchanged script attached. I have tested it on SQL 2005 Developer Edition and it works fine. Of course it should be rewritten to use new system views but I don't have time for that right now. Please let me know if this works for you.