SELECT c.NAME AS [Column Name], t.NAME AS [Data type], c.max_length AS [Max Length], c.precision, c.scale, c.is_nullable AS [Is Nullable], c.is_identity AS [Is Identity], ) [Primary Key], i.type_desc, OBJECT_SCHEMA_NAME(fk.object_id) + '.' + OBJECT_N…