C# sql connection string

sakuraime 2,351 Reputation points
2021-10-19T09:30:12.723+00:00

whats the difference between the following ? which is performs better ?

141686-image.png

what's the difference between the provider , in the oledbconnection string ??

Provider=Microsoft.Jet.OLEDB.4.0 and
Provider=MSOLEDBSQL

?which one is better in performance ?

In the C#

Using System.Data.OleDb, < which the connection will be using ADO.NET through oledb .

Is it possible to use native oledb driver inside a C# program ?

Developer technologies | .NET | Other
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 91,406 Reputation points
    2021-10-19T09:40:11.763+00:00

  2. Karen Payne MVP 35,591 Reputation points Volunteer Moderator
    2021-10-19T11:42:23.613+00:00

    A data provider like SqlClient is optimized for performance to SQL-Server along with offering access to features specific to SQL-Server. In short, SqlClient is the choice to use for SQL-Server.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.