• OBJECT_DEFINITION sounds like a real winner! I hadn't heard of that function, it sounds perfect though!

    Thanks for sharing this tip Tim! I guess I need to swot up some more on SQL 2005!

    SQL guy and Houston Magician