Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

oracle database connection

fj8283888fj8283888 Posts: 37Member
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.