• You can use system views sys.objects and sys.columns to check, if the columns exist in your tables

    Information on views:

    http://msdn.microsoft.com/en-us/library/ms190324(SQL.90).aspx

    http://msdn.microsoft.com/en-us/library/ms176106(SQL.90).aspx