I need to add some columns dynamically in a table (TargetTable
). Before doing that I need to check whether the columns are already exists in TargetTable
. If they do not exist, then that column will be added, otherwise not.
This is not for fixed column. These columns are storing at SourceTable
's rows.
How do I check the existence of each column before adding in the TargetTable
?