S
Sergey Poberezovskiy
Hi,
I created a dataset by dragging a (SQL Server) stored
procedure from the Servers pane. The dataset consists of
three tables that are not linked (at least I do not
enforce contraints).
But when I try to populate the dataset by
SqlClient.SqlDataAdapter.Fill(ds, tableName)
I receive the following error:
"Failed to enable constraints. One or more rows contain
values violating non-null, unique, or foreign-key
constraints."
Please note that the same code works fine for a different
dataset, so there are no syntax errors.
I have checked that all the fields that are not marked as
minOccurs="0" return not Null values; I even tried to set
minOccurs="0" for all fields in the dataset - same result.
Please help....
I created a dataset by dragging a (SQL Server) stored
procedure from the Servers pane. The dataset consists of
three tables that are not linked (at least I do not
enforce contraints).
But when I try to populate the dataset by
SqlClient.SqlDataAdapter.Fill(ds, tableName)
I receive the following error:
"Failed to enable constraints. One or more rows contain
values violating non-null, unique, or foreign-key
constraints."
Please note that the same code works fine for a different
dataset, so there are no syntax errors.
I have checked that all the fields that are not marked as
minOccurs="0" return not Null values; I even tried to set
minOccurs="0" for all fields in the dataset - same result.
Please help....