The article is great. had a question: In Production, is it possible that the login that runs such a query might not have access to Master..syscolumns and so I should use some table from within my own database that i know is always 10k in size or more? Maybe a stupid because it is possible that everyone has read access to such system views. I will test but thought someone may have an answer. BOL says: "In SQL Server 2005 and later versions, the visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission."