dnlnln / generate-sql-merge

Generate SQL MERGE statements with Table data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

INFORMATION_SCHEMA use is not recommended

James-DBA-Anderson opened this issue · comments

Aaron Bertrand explains why the use of INFORMATION_SCHEMA is not a good idea here

His comment below the post explains how to obtain ordinal position from sys.columns. The is_identity value is also available in sys.columns