I am using an OleDbCommand object to which I add a number of OleDbParameter objects as required by my UPDATE query.
When I execute the UPDATE query I get - for example - a Datatype mismatch, but without any indication of which parameter in the query is at fault.
If I could access the actual query as executed, I could paste it directly into my databases query analyser, run it and see where the problem lies quickly and easily. The only command text I can get at is with the parameter placeholders in place rather than the actual values.
Is there a way to get at the actual command that is executed?
When I execute the UPDATE query I get - for example - a Datatype mismatch, but without any indication of which parameter in the query is at fault.
If I could access the actual query as executed, I could paste it directly into my databases query analyser, run it and see where the problem lies quickly and easily. The only command text I can get at is with the parameter placeholders in place rather than the actual values.
Is there a way to get at the actual command that is executed?