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 ?
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-
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.