IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'myTableName'
AND COLUMN_NAME = 'myColumnName')This code snippet is for How to Check if Column Exists in SQL Server Table.
This code snippet is for How to Check if Column Exists in SQL Server Table.
IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'myTableName'
AND COLUMN_NAME = 'myColumnName')