C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2720
Number of posts: 5746

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
oracle database connection Posted by fj8283888 on 12 Sept 2006 at 5:22 AM
Hi,

I try to catch the bugs with the database service is close
try
{
OleDbDataReader custReader = custCMD.ExecuteReader();
}
catch(System.Data.OleDb.OleDbException)
{
		
MessageBox.Show("656","Error on logining to database",MessageBoxButtons.OK, MessageBoxIcon.Error);
}		


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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.