SQL Constraint - transfer to DataTable

  • Thread starter Thread starter Claudio111
  • Start date Start date
C

Claudio111

Guest
Hi all


I have a Sql DataBase Table that has a primary key and a Column with an Index of Unique constraint

I Use Table Adapter and Designer to create the DataSet in my winform application

Then I fill the dataset with the Fill Query

If I loop thru columns of the DataTable in DataSet to check the value of each Datacolumn.unique property I get 'True' for the primary key but 'false' for the column that has Unique constraint in Database table.

What I miss ? I do not understand

Please help me. Thanks

Continue reading...
 
Back
Top