Whenever we (a colleague of mine and I) perform code reviews, we always prefer the use of INFORMATIONSCHEMA for this very reason. We have been working with the same code for 7 years now all the way from SQL2000 to 2008R2, and INFORMATIONSCHEMA has never failed us.
commented on Mar 14 2012 1:43PM