Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is advantage of using System.Data.SqlClient ?

Status
Not open for further replies.

djayakum

Programmer
Feb 2, 2002
28
IN
Hi,

what is advantage of using System.Data.SqlClient ? we can use the System.Data.OleDb to connect the Sql Server,So for what they created namespace only for SqlServer ? is there any adavantage is there if i use System.Data.SqlClient ?

JK

 
it is optimized to work with sqlserver and therefor it will be faster

Christiaan Baes
Belgium

What a wonderfull world - Louis armstrong
 
Chrissies1 is right and I found it is good to have SqlClient for the SQL Server and OracleClient (in .NET 1.1) for the Oracle database.
Take a look at SqlDbType which enumerates the data types specific to SQL.
On the other hand , OracleClient supports a number of Oracle data types, including the BFILE, LOB, and REF CURSOR data types. So when you work with SQL use System.Data.SqlClient.
When you work with Oracle use System.Data.OleDb or System.Data.OracleClient.
-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top