Search
Recommended Products
Related Links


 

 

Informative Articles

Facts To Consider When Using An Article Marketing Submission Service Or Automated Software Program
One of today's most popular trends in website traffic promotion is Article Marketing. Go to Google and do searches under "submit your article" or free content to republish" and you will find hundreds of sites where you can submit your articles....

Getting better exposure on download sites
As a shareware download site webmaster I have some suggestions for the shareware authors out there that submit their programs to download sites. I spend many hours a week reviewing submissions submitted to my site and cannot believe that lack of...

Make Money Online - Latest Scam Disclosed
Before we start, I want to make it clear that this article is about scammers that affect people who make money online by selling digital products, like e-books, software, etc. and have a refund policy, because we have a rather long way until the end...

Protect Your Email Address
Spam only occurs when the spammer is able to get your email address. They have a variety of methods for doing this, some legal and some not. Either way, the result is the same. You have become a spam victim. The single most important action that...

Success Stories - 12 Doers Share Their Secrets: Interview with Milana Nastetskaya
This week we have another great interview - the third in the series - with a lady who is taking the Internet by storm. Milana Nastetskaya is the author of the highly regarded ebook "65 Instant Web Design Answers!". Milana currently lives in Central...

 
Google
Connecting and Accessing Data through ADO.NET

Microsoft's ADO.NET technology offers a solution to many of the problems associated with data access.

Accessing data has become a major programming task for modern software programming, both for standardalone applications and for web based applications. Microsoft's ADO.NET technology offers a solution to many of the problems associated with data access.

ADO.NET is an improvement to Microsoft ActiveX Data Objects (ADO). It is a standards-based programming model for creating distributed data-sharing applications. ADO.NET offers several advantages over previous versions of ADO and over other data access components. These benefits fall into the following categories:

Interoperability
Maintainability
Programmability
Performance.
Connecting to a database:
For performing and operation we need to connect to a database. This is done automatically through ADO connection, of which code is associated with VS.net Programming environment.

Connecting Database
sharp1.cs class xyz1 {
public static void


main()
{
try
{
System.Data.ADO.ADOConnection s;
S=new System.Data.ADO.ADOConnection();
System.Console.Writeline("C-Sharp);
}
catch(System.Exception e)
{
System.console.Writeline(e.ToString());
}}}


Above program can be compiled through command line at DOS promot giving command line option as /r:System.Data.Dll

Because the code for ADO.Connection is available at this DLL. The above program consists of an object s resembling as System.ado.adoconnection .

Thus we are creating the object s by the statement:

System.Data.ADO.ADOConnection s;

From the output it is clear that the constructor has thrown no exception, as otherwise catch block would have been executed.

About the Author

Presently working in the capacity of the Technical Director of Birbals, an e-consulting firm based in India dedicated in providing innovative and effective web, Hospitality and consultancy services to public, private and non-profit organizations. Successfully founded Birbals and other IT companies like Ebirbals and SeoBirbals.