First, table-defined default values are applied when a data row is INSERTED,
not UPDATED--and then only when the INSERT statement does not supply the
explicit value.
When using a stored procedure that executes an UPDATE, the procedure can
define any number of parameters that can have default values. When executing
the stored procedure with ADO and want the parameter to be set to this
default value, you simply build a Parameters collection that does not
include the Parameter.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"JMM B" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Ok, but how can I send NO values to the UPDATE. In the xml schema of the
> Dataset, there is a property called "NullValue" with three possible
> values: null, empty, throw. I set it to "empty" but still inserts null
> values in the database.
> I didn't manage to make it work.
> thanks,
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!