Enquiring Mind
2008-05-05 09:51:44 UTC
Hi,
Suppose a SQL server table has a unique fields constraint. Since a client
dataset in general only has a partial view of the complete table on the
server, checking the uniqueness constraint locally will not guarantee that
it is satisfied on the server. The definitive uniqueness check can only be
done on the server. Therefore just before applying inserts or updates to
the SQL server the client program must query the server to determine whether
the server unique fields constraint would be satisfied by the field values
to be applied to the server. Presumably such an operation should be done by
the TDatasetProvider during the execution of ApplyUpdates. Does the
DatasetProvider do this automatically if the server constraints have been
imported to the provider/client dataset?
Thanks.
EM
Suppose a SQL server table has a unique fields constraint. Since a client
dataset in general only has a partial view of the complete table on the
server, checking the uniqueness constraint locally will not guarantee that
it is satisfied on the server. The definitive uniqueness check can only be
done on the server. Therefore just before applying inserts or updates to
the SQL server the client program must query the server to determine whether
the server unique fields constraint would be satisfied by the field values
to be applied to the server. Presumably such an operation should be done by
the TDatasetProvider during the execution of ApplyUpdates. Does the
DatasetProvider do this automatically if the server constraints have been
imported to the provider/client dataset?
Thanks.
EM