K
K. Shier
VB.Net
i catch an SQLException having message: "Line 1: Incorrect syntax near
'ContractNum'." while trying to update a datasource via a data adapter.
is there any way to retrieve the SQL command string that caused the error
directly from the Exception object? I can, of course, get the strings out
of the DataAdapter's command objects, but i don't want those - i want to see
exactly what is being sent to SQL Server.
i have looked around the object hierarchy of SQLException and SQLError but i
don't see anything that looks like what i need.
any insight would be much appreciated! THANKS!
i catch an SQLException having message: "Line 1: Incorrect syntax near
'ContractNum'." while trying to update a datasource via a data adapter.
is there any way to retrieve the SQL command string that caused the error
directly from the Exception object? I can, of course, get the strings out
of the DataAdapter's command objects, but i don't want those - i want to see
exactly what is being sent to SQL Server.
i have looked around the object hierarchy of SQLException and SQLError but i
don't see anything that looks like what i need.
any insight would be much appreciated! THANKS!