| 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.
|