วันเสาร์ที่ 4 กรกฎาคม พ.ศ. 2552

The data access and connectivity with ADO.NET

Microsoft ADO.NET provides a solution to many problems regarding access to data.

 Access to information is one of the most important tasks of programming, planning only modern standard software applications and web applications. Microsoft ADO.NET provides a solution to many problems associated with accèsou data.

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

 Interoperability

 Maintainability

 Programming

 Performance.

 Connecting to a database:

 For the implementation and operation is needed to connect to a database. Thereò done automatically using ADO connection with the code name asociadoProgramación with VS.net environment.

 Connecting the 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 (Exception e System.)

 (

 System.Console.WriteLine (e.ToString ());

 )))

 The programma above can be compiled using the DOS command line to the promotion using the command line the / r: system.data.dll

 Since the code is available in this ADO.Connection DLL. The above program consists of an object as close as possible to s System.ado.adoconnection.

 If the purpose of the mission statement is as follows:

 System.Data.ADO.ADOConnection s;

 From the gate, it is clear that the manufacturer has an exceptionalmind, because the catch block are executed.


0 ความคิดเห็น:

by TemplatesForYou-TFY
SoSuechtig, Burajiru
Distributed by Free Blogger Templates