OleDb Exception

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

Hello all:

I am trying to insert a new row into a database after
populating all of its fields w/data and then adding the row
to my dataset's row collection. But when I call the
adapter's update method on the dataset I get an unhandled
exception error w/o a description. Any help is appreciated.

Thanks,

John
 
This should be a try/catch block.

When you catch the exception, you can also "catch" specific errors. So
instead of:

catch (Exception e)

You could catch a more specific error from SQLOLEDB, something like this:

catch (OleDbException e)

and that will have much more specific error information than the generic
Exception..
 
Back
Top