|The Message text:
This email was created by [your name] who thought you would be interested in the following Article:
"An Easy Way To Query a Database"
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...
CodeProject also contains hundreds of articles, free source code samples and applications to help in your day to day programming. Why not give it a try!