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.
28
Upvotes
View all comments
Show parent comment
2
u/da_chicken Dec 22 '25
Documentation wise, I do think that what you have here is a really good start. It's especially good for the people writing those database connection libraries in their application that will hook into your driver. But I think it's important to recognize that a whole lot of people are going to be just using pyodbc or Microsoft.Data.SqlClient, and they will need to know how to write a secure, private, reliable connection string even when they don't have control over the RDBMS server or necessarily the ability to configure SQL Server in the more secure but "not default out-of-the-box" way. I think very rarely is someone that needs the Ole Db technical specifications going to be the one writing the connection strings in production.
Like knowing what keys I should use and what aliases there are is great, but the problem is that I still have to know how the application is choosing to call the driver library. And I just don't know that. The fact that
TrustServerCertificateis in one, whileTrust Server Certificateis in the other two is exactly the problem, though, because I just don't know and can't control how any given application chose to implement any given driver. And while they didn't give a crap about connection level encryption making sure their software connected securely because it was all local network, well, I don't have that luxury because neither I nor my organization has full control of our network before our end of the VPN tunnel to our SQL Server. So, I need to be sure that my connection is encrypted from the client just to maintain privacy and security!I would like to see the aliases as another column in the table. When I find the canonical key, I want to know the aliases for it. Like looking at the
Addressrow by itself, I can't tell thatAddris an alias, or even has aliases. I think organizing the documentation such that the preferred key name is the one that you're funneled towards would be good.But there's also just web page layout problems here. Like, there's three different tables on that one page, but there is no navigation struction showing you that there's 3 giant tables there. If I Ctrl+F, I can't tell which of the 3 tables I ended up in except by looking at the scroll bar, or just scrolling. And the sidebars on the left and the right are wide enough to cover those tables on my laptop's display (1366x768), so even when I find what I want, I might have to scroll all the way to the top of that section's table, and click the Expand button and then find what I'm looking for again.
Also, so I know using the self-signed certificate with
Trust Server Certificateis really not ideal, but like 50% of the SQL connection strings I use are to systems on the local network or connect directly by a reserved IP. However, I know that when I connect to an SFTP server, those client systems don't just check the certificate's validity and trust. It can also check the host key fingerprint. That's worse than a certificated chain of trust, but it's better than blindly trusting it. It checks that the certificate key is the one the client expected. For these local installations where it doesn't make sense in terms of money or in terms of administrative overhead cost to set up, that would be an improvement over the blind trust model. Because, in my case, I'm connecting to an IP address to a remote SQL Server controlled by the hosting vendor. The vendor didn't put a cert on it. They've been saying they will for ages, but I'm not going to hold my breath. But if the client could check that fingerprint it would be an improvement. It would mean the connection would fail when the vendor changed something... but that's kind of necessary in order to detect when the server changed without planning.(continued in reply)