i can't connect to my database the OLEDB throw the following error
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll
How can you handel it
thanks
Printable View
i can't connect to my database the OLEDB throw the following error
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll
How can you handel it
thanks
to catch the exception you should use the try catch statements...
try{
My_OleDBConnection.Open();
}
catch(OleDbException m_Ex)
{
Messagebox.Show(m_Ex.Message);
}
Finally
{
//free resource here...
}