19.1 CommentsTroubleshooting

19.1 Comments/Troubleshooting

All Command objects implement the IDbCommand interface from the System.Data namespace, and are thus quite similar. In all basic ADO.NET providers, the Command object encapsulates a SQL statement or stored procedure call.

Some Command classes for ADO.NET providers are shown in Table 19-1.

Table 19-1. Provider-specific Command classes

Class

Data source

 System.Data.SqlClient.SqlCommand 

SQL Server

 System.Data.OleDb.OleDbCommand 

An OLE DB provider

 System.Data.Odbc.OdbcCommand 

An ODBC driver

 System.Data.OleDb.OracleCommand 

Oracle



ADO. NET in a Nutshell
ADO.NET in a Nutshell
ISBN: 0596003617
EAN: 2147483647
Year: 2005
Pages: 415

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net