9

I have an SQL Server database, and I need to push data into it through vbscript, as well as pull data into Excel. I have found multiple connection strings, but no repository for the benefits of performance and functionality comparing them. The driver options (Provider=) I have found so far are:

  • {SQL Server} (ODBC)
  • SQLOLEDB (newer than ODBC, but being deprecated?)
  • SQLOLEDB.1 (what Excel 2016 uses when clicking 'Get External Data', but not even mentioned on connectionstrings.com... I assume a newer version of the above, but still the deprecated technology?)
  • SQLNCLI11 (native client, OLE DB)
  • {SQL Server Native Client 11.0} (native client, ODBC)

Different things I read say that ODBC is better because it has been around longer. And that OLE DB has been around long enough to have the same advantages. And OLE DB was made to work with a certain company's applications. And ODBC was made by the same company. And OLE DB can connect to and from different kinds of applications better. And ODBC works better with databases. And Native is...Native, so must be better... because of the name?

I find multiple questions here on SO floating around with no or partial answers, or having multiple comments claiming the answers are out of date. So, as of now, what the specific differences between these different drivers? Do they have different performance in different circumstances? Do they have different features? Do I need to do profiling to determine the best performance and reliability for my particular use case, or is there a standard "best practice" recommended by Microsoft or some recognized expert? Or are they all basically doing the same thing and as long as it's installed on the target system it doesn't really matter?

21
  • We use SQL Server as back-end with Access and Excel on front-end with native client. All works fine.
    – gofr1
    Jun 18, 2016 at 8:18
  • 1
    Have a look at this: stackoverflow.com/questions/103167/…
    – Alex
    Jun 18, 2016 at 8:45
  • @Alex Thank you. That is definitely the first question to come up in search, and of course required before anyone would post a question like this. This question specifically is also what I was referring to when I said "multiple comments claiming the answers are out of date", but isn't the only one. I assume that is why you pointed it out, so that others who haven't done the searching you have done can come into the conversation easier, right?
    – CWilson
    Jun 18, 2016 at 23:43
  • 1
    @CWilson, You have posted a very good question. I also could not find a comprehensive summary article that explains all these things as they stand in 2016. The information is out there but it is spread out over many different articles, so makes it hard to build a picture.
    – Alex
    Jun 19, 2016 at 1:50
  • 5
    This should be reopened as it's a very valid development question. It's about shedding some light on Microsoft data access technologies. Jun 22, 2016 at 7:17

1 Answer 1

1

ODBC-it is designed for connecting to relational databases. However, OLE DB can access relational databases as well as nonrelational databases.

There is data in your mail servers, directory services, spreadsheets, and text files. OLE DB allows SQL Server to link to these nonrelational database systems. For instance, if you want to query, through SQL Server, the Active Directory on the domain controller, you couldn't do this with ODBC, because it's not a relational database. However, you could use an OLE DB provider to accomplish that.

http://www.sqlservercentral.com/Forums/Topic537592-338-1.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.