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
1
u/da_chicken Dec 22 '25
Hi David! I appreciate you taking the time to communicate here. I know your job of modernizing drivers and connection strings isn't an easy one.
Unfortunately, I'm on vacation... no, that doesn't sound right. Happily, I'm on vacation, but this limits my access. Ordinarily, that's entirely all upside, but I'm not able to reference my actual systems at the moment. Still, I've thought about your questions since Friday, and I didn't want to leave you hanging. I don't want to ignore your post in case you're unfortunate enough to be in the office this week, but I'll kind of have to shoot from the hip.
Anyhow, that's my excuse for going full-on stream of consciousness.
I'll tell you, I didn't dislike the idea behind the change in v19 to start culling some of the superfluous aliases. It is a problem. But thinking through how that, the problems I've seen people have with v19 that it does make more sense to do what you're saying here. Go broad and try to support a lot, but then also communicate to the user what they should be using.
So, from #3 and #4, I'm taking you to mean that you will automatically replace the aliases with however the driver is preferring it. I think that would be fine. It would be nice to be able to ask the application to give be a connection string from a given known-working connection (with the password obfuscated). Because there does need to be a common connection language, and unless you're going to make it some JSON structure (which I don't think is a significant improvement) then connection strings are kind of it. Don't worry, though, you're already doing much better than setting up a RESTful API connection.
And, yeah, I'd really like it to have defaults that are as sane as possible. It's really great when the connection string is nothing more than the provider, the server name, and the database name. A minimum viable connection string is a great idea. I just wonder how to do that and ensure that the defaults are skewing towards modern security. It's strange to me that in 2025 the default remains "encrypt for authentication, plain text for all else." That's kind of my complaint with web browser vendors: Why are you complaining so loudly that the HTTPS connection to the IP address 192.168.1.1 is encrypted but insecure, but making no mention at all how much worse the HTTP connection to the same address is?
Honestly, while #1 is probably going to be a big pain for you guys to implement and maintain, I think #2 might be the most important part and I think it's only half the battle. From my experience, when the connection to the database server fails, the error message you typically get is just some form of, "Connection to database could not be established," or, "Connection to database lost." A lot of applications will just throw away the error message, whether it's from the driver or the RDBMS. If it's be with an SSIS package, or Powershell, or a Python script I can work with that, but sometimes it just gets thrown away. Like I would almost want connection logging in the connection string. I think some ODBC drivers that implement a
LogLevelandLogPathkeys to let you force connection logging by the driver regardless of whether or not I have access to the server or wrote the application myself. I know there's the Ole Db tracing setting in the registry, but that's also a pain to use.(continued in reply)