Hi

Is there a way to disable EnforceConstraints on a dataset? I have this
statement ds.EnforceConstraints = true in MyDataSet.Designer.vb but I am
reluctant to set it to false as the designer may overwrite the code.

I only wish to do it temporarily to speed up fill operations.

Thanks

Regards

Re: Disabling EnforceConstraints by Rad

Rad
Thu Feb 28 15:36:53 CST 2008

On Fri, 22 Feb 2008 21:59:40 -0000, John wrote:

> Hi
>
> Is there a way to disable EnforceConstraints on a dataset? I have this
> statement ds.EnforceConstraints = true in MyDataSet.Designer.vb but I am
> reluctant to set it to false as the designer may overwrite the code.
>
> I only wish to do it temporarily to speed up fill operations.
>
> Thanks
>
> Regards

You can set it to false just before the call to
DataAdapter.Fill(yourDataSet) call in your code

--
http://www.thinkersroom.com/bytes