Wrong!
checking columns which are part of a PRIMARY KEY constraint shows the IsUnique and IsKey columns for them as false. I display the DataTable using debug in VisualStudio, and the columns show false, even though using VDBA shows the primary key in the properties tab, and a copydb generates the code below in copy.in (a real case):
alter table object_auth add constraint pk__object_auth PRIMARY KEY(originator_id, object_id)
GetSchemaTable shows IsKey and IsUnique for both columns as false.
|