R
Rob R. Ainscough
I've noticed that the OleDbCommandBuilder.GetInsertCommand often produces
incorrect syntax which will generate errors. I've had to override and
provide my own commands. Specifically the GetInsertCommand seems to have
issues when dealing with "reserved" words -- as in a field name "Note" -- it
will not generate the correct syntax -- should be "[Note]" in the string.
Is this a lack of completeness on Microsoft's part or is this "by design"?
It would seem to me that if the purpose of GetInsertCommand is to save the
developer time, but the developer can't rely on the accuracey of the method,
then the developer is back at square one? I'm not going to use a method
that I know will produce incorrect syntax in certain situations -- I'll just
use a more reliable approach (aka I'll code it).
Rob.
incorrect syntax which will generate errors. I've had to override and
provide my own commands. Specifically the GetInsertCommand seems to have
issues when dealing with "reserved" words -- as in a field name "Note" -- it
will not generate the correct syntax -- should be "[Note]" in the string.
Is this a lack of completeness on Microsoft's part or is this "by design"?
It would seem to me that if the purpose of GetInsertCommand is to save the
developer time, but the developer can't rely on the accuracey of the method,
then the developer is back at square one? I'm not going to use a method
that I know will produce incorrect syntax in certain situations -- I'll just
use a more reliable approach (aka I'll code it).
Rob.