Tuesday, 5 December 2017

WIndows Hosting Database Programming

SQLClient .NET classes are highly optimized for the .net / sqlserver combination and achieve optimal results. The SqlClient data provider is fast. It's faster than the Oracle provider, and faster than accessing database via the OleDb layer. It's faster because it accesses the native library (which automatically gives you better performance), and it was written with lots of help from the SQL Server team

The advantage of ADO.Net are
  1. ADO.NET Does Not Depend On Continuously Live Connections
  2. Database Interactions Are Performed Using Data Commands
  3. Data Can Be Cached in Datasets
  4. Datasets Are Independent of Data Sources
  5. Data Is Persisted as XML
  6. Schemas Define Data Structures
The namespaces use to connect database are
  1. System.Data.OleDb – classes that make up the .NET Framework Data Provider for OLE DB-compatible data sources. These classes allow you to connect to an OLE DB data source, execute commands against the source, and read the results.
  2. System.Data.SqlClient – classes that make up the .NET Framework Data Provider for SQL Server, which allows you to connect to SQL Server 7.0, execute commands, and read results. The System.Data.SqlClient namespace is similar to the System.Data.OleDb namespace, but is optimized for access to SQL Server 7.0 and later.
  3. System.Data.Odbc - classes that make up the .NET Framework Data Provider for ODBC. These classes allow you to access ODBC data source in the managed space.
  4. System.Data.OracleClient - classes that make up the .NET Framework Data Provider for Oracle. These classes allow you to access an Oracle data source in the managed space.