General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Capture SQL Passthrough error
Does anyone know how to "capture" an error generated by SQL Server from a SQL Passthrough statement?
Example: msql='INSERT INTO table1 (field1,field2,field3) VALUES '+;
'(?mfield1,?mfield2)'
obviously this INSERT statement would fail with a similar error message below:
"There are more columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement."
but is there anyway to capture this error (or any error really)?
Thanks
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only