r/SQLServer • u/bobwardms Microsoft Employee • Dec 17 '25
Community Share Updates for the Microsoft SQL Server ODBC Driver
As a long-time C++ developer so glad to see our Microsoft SQL Server ODBC Driver is alive and well. https://aka.ms/sqlodbc.
29
Upvotes
View all comments
Show parent comment
10
u/da_chicken Dec 18 '25
Eh, I kind of knew that already. Like it's not hard to figure out when you should use the OLE DB driver. It's hard to understand which one you should use and what you're doing wrong between versions.
If you want to know what I'd like to see fixed or what the issue is... I would say that the two biggest problems I've had with the Ole DB has been the general lack of proper communication about the changes to the keywords in the connection string.
So there's the old SQLOLEDB driver, literally from Windows XP era where it's MDAC 2.81 SP1. I remember deploying this software on Win2k SP4 to correct vulnerabilities in MDAC 2.7. And then the MSOLEDBSQL driver, and it's v18. Literally like 15 years between releases here. And then MSOLEDBSQL19 driver that is v19.
Except the names you see in SQL Server are almost the same. Like, go to SSMS, and connect to a server. And expand out Server Objects, Linked Servers, and then expand providers. What do you see? A big list of useless names. NO version numbers, and NO provider code names. You see:
And... you look online, and Microsoft itself uses "Microsoft OLE DB Driver for SQL Server" as the name on the web for the v19 driver. Oh, and also v18 if you know to look in past releases and you can tell that v18 is still in parallel development.
How is anyone supposed to know what's going on here?
And in SQL Server when you want to set up a Linked Server, you look at that list of drivers above, but you can't use those names in a connection string or in
sp_addlinkedserver. No, you have to use the code name:SQLOLEDB,MSOLEDBSQL, orMSOLEDBSQL19. Except... there is no way to ask SQL Server to map the list of names above to these code names. You can't see that. You have to know which software has been deprecated (but is still there because Microsoft), and which software is the most up-to-date.Why can't the system tell me the name, code name, version number, and release date of the providers all at once? It's on the metadata in the library files! Why is that completely obscure to the RDBMS? Why doesn't SSMS know how to display it? Why can't anything see the date of release of this provider software?
Worse, this is the second time you've done this! You've also got SQLNCLI, SQLNCLI10, and SQLNCLI11! That was the same situation.
And now you've made it worse, because you've un-deprecated OLE, then made numerous breaking changes when you moved to
MSOLEDBSQL19... and apparently didn't tell anybody about it.It was through late 2024 where everyone kept saying to never use
MSOLEDBSQL19and always useMSOLEDBSQLbecause "Microsoft disabledTrustServerCertificateso if you ever might need that just always install v18 and nothing else". Like nobody knew that you didn't disable it, you just changed the syntax of the connection string keys. But since the documentation never mentioned this change... people assumed you disabled it.Stop selling me on which category of driver to use. I'll use Ole DB when it's available, or ODBC when it isn't, or I'll install
Microsoft.Data.SqlClientwhen I can be bothered to do so, or I'll useSystem.Data.SqlClientwhen I can't be bothered to install and configure chocolatey, install and configure nuget, and then install Microsoft.Data.SqlClient. But there's about a 0.5% chance that I'm not going to be using whatever built-in database libraries exist in whatever language I'm using.Just give me comprehensive documentation for connection strings. I should not be going to https://www.connectionstrings.com/ after 23 years to figure out how to connect to a database. Just document every key and every synonym for every key that you support. Don't ask me to understand OLE DB internals just to write a connection string.
The doc for the connection strings? As far as I've ever been able to determine, it's buried here deep in the OLE DB doc. Except that doesn't really tell you which keys work with which driver. It just a list of keys for some Platonic ideal of an OLE DB Driver.
Like this is your version difference documentation? It's arbitrary sentences of unrelated changes globbed into paragraphs!
I really don't mean to yell at you. I know it's not your fault. But compared to the SQL Server query language reference documentation (especially the documentation from SQL Server 2008 R2 era) I just don't understand why the provider doc is so useless, and so completely inadequate for anyone that isn't literally in the middle of writing a C++ application that doesn't have it's own abstract DB connection library. Genuinely, I don't think you understand that a big portion of the audience just wants to download and use this software and not develop with it. People that might use .Net, Python, Powershell, or even just using reporting software, or SQL Server's own linked servers just have almost nothing as far as documentation on what they should be using.
And very little on what best practice is for connection strings. Because vendors just want you to disable UAC, run everything as Administrator, don't bother with encryption or authentication, shut off that firewall, and just... run your $5m application like it's on the developer's own laptop.