Click here to Skip to main content
15,891,749 members
Articles / Programming Languages / Visual Basic

An Easy Way To Query a Database

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
14 Feb 2011CPOL 6.3K   3  
The sample code provided by Andrew Rissing is a huge improvement over the original, but incorrectly catches the exception and displays a MessageBox. (Andrew correctly points out this is not a good idea.)A better solution is to allow the exception to fail:public DataSet...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Australia Australia
This member doesn't quite have enough reputation to be able to display their biography and homepage.

Comments and Discussions