oracle database connection

Hi,

I try to catch the bugs with the database service is close
[code]
try
{
OleDbDataReader custReader = custCMD.ExecuteReader();
}
catch(System.Data.OleDb.OleDbException)
{

MessageBox.Show("656","Error on logining to database",MessageBoxButtons.OK, MessageBoxIcon.Error);
}
[/code]

however the program is stopped at OleDbDataReader test= test.ExecuteReader(); with green colour highlighted. The error message is following message" An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll"

Thanks
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories