What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 5831 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > ADO.NET Interview Questions > What are the Differences between OleDb a ...

What are the Differences between OleDb and SqlClient ?

Interview question and answer by: Ddd | Posted on: 1/20/2011 | Category: ADO.NET Interview questions | Views: 2542 | | Points: 40


Answer:

OleDb and SqlClient are both called as Data Providers in .net

They are basically namespaces which contain specific classes used for connectivity and for

data handling.

OleDb is referred to as System.Data.OleDb

SqlClient is referred to as System.Data.SqlClient

OleDb: Object linking and Embedding database.

Differences:

OleDb is used for connecting to any database like SQL Server, Access, Oracle, Excel.
We have to mention the appropriate provider to connect with the particular database.
This adds an extra layer for connetion and has performance impacts.


SqlClient is used for SQL Server only. (for SQL Server 7.0 onwards)
We do not have to mention the SQL Server provider.
For SQL Server 6.5 or lower we will have to use OleDb


SqlClient is faster than OleDb.

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


 Responses

Posted by: Prabhakar | Posted on: 22 Jan 2011 01:26:24 AM | Points: 10 | Alert Moderator 

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.

>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Ddd

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/24/2013 2:09:38 AM