How computer software works
 

Welcome to our computer software Articles. Have fun browsing!

 

Article #184: Connecting and Accessing Data through ADO.NET

(Browse for more articles)

 
Microsoft's ADO.NET technology offers a which code is associated with VS.net
solution to many of the problems Programming environment.
associated with data access. Connecting Databasesharp1.cs class xyz1
Accessing data has become a major {public static void main()
programming task for modern software {try
programming, both for standardalone {
applications and for web based System.Data.ADO.ADOConnection s;
applications. Microsoft's ADO.NET S=new System.Data.ADO.ADOConnection();
technology offers a solution to many of System.Console.Writeline("C-Sharp);
the problems associated with data access. }catch(System.Exception e)
ADO.NET is an improvement to Microsoft {
ActiveX Data Objects (ADO). It is a System.console.Writeline(e.ToString());
standards-based programming model for }}}
creating distributed data-sharing Above program can be compiled through
applications. ADO.NET offers several command line at DOS promot giving command
advantages over previous versions of ADO line option as /r:System.Data.Dll
and over other data access components. Because the code for ADO.Connection is
These benefits fall into the following available at this DLL. The above program
categories: consists of an object s resembling as
Interoperability System.ado.adoconnection .
Maintainability Thus we are creating the object s by the
Programmability statement:
Performance. System.Data.ADO.ADOConnection s;
Connecting to a database: From the output it is clear that the
For performing and operation we need to constructor has thrown no exception, as
connect to a database. This is done otherwise catch block would have been
automatically through ADO connection, of executed.






1 - A - B - C - D - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 - 38 - 39 - 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 - 48 - 49 - 50 - 51 - 52 - 53 - 54 - 55 - 56 -