The SQL Server™ Data Provider classes are accessed via the System.Data.SqlClient namespace. To use these classes, you need to include the namespace in the pages of your application that will use the provider.
To do so, use the @ Import directive at the top of the page, as in the following.
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
The OLEDB Data Provider classes are accessed via the System.Data.OleDb namespace. Likewise, to use these classes, you need to include the namespace at the top of the pages that will use the provider.
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
The System.Data namespace consists mostly of the classes that constitute the ADO.NET architecture that are common to both providers.
Together, these directives cover the needed set of interfaces for creating distributed, data-sharing .NET applications.
NOTE: Use of the SQL Server™ .NET Data Provider or OLE DB .NET Data Provider requires installation of Microsoft Data Access Components ( MDAC ) 2.8 or later on the Web server.