doc.Whitepaper.udadnet







As a core element in the ADO.NET architecture, your choice of data provider is crucial. The aim of this White Paper is to describe OpenLink? .NET providers and highlight key considerations you should bear in mind when selecting a data provider.

[[/images/dnetmanage.jpg|]]


/ Image scaled down; Click to enlarge./


TDS Wire Protocol * - The TDS protocol has been ported to C# and linked into the Provider, enabling two 100% Managed Providers to be created capable of direct connectivity to Microsoft and Sybase SQLServer Databases without the need for any additional components on the Server, as indicated in the diagram below:

[[/images/../images/dnetmantdsms.jpg|]]


/ Image scaled down; Click to enlarge./

[[/images/../images/dnetmantdsyb.jpg|]]


/ Image scaled down; Click to enlarge./

[[/images/../images/dnetunmanage.jpg|]]


/ Image scaled down; Click to enlarge./



using System.Data.OracleClient; OracleCommand myCommand = new OracleCommand(); myCommand.CommandText = "SELECT BOOKID, BOOKTITLE, AUTHOR, PRICE, RETAIL FROM PRODUCTS WHERE SUBJECTID = :SUBJECTIDIN"; 



using System.Data.SqlClient; SqlCommand myCommand = new SqlCommand(); myCommand.CommandText = "SELECT BOOKID, BOOKTITLE, AUTHOR, PRICE, RETAIL FROM PRODUCTS WHERE SUBJECTID = @SubjectID"; 



using OpenLink.Data.GenericClient; OpllCommand myCommand = new OplCommand(); myCommand.CommandText = "SELECT BOOKID, BOOKTITLE, AUTHOR, PRICE, RETAIL FROM PRODUCTS WHERE SUBJECTID = ?";