PB 2022 R2 & SQL Server
- Advice
- John Niespodzianski
- PowerBuilder
- Saturday, 21 October 2023 07:41 PM UTC
Hello everyone,
A question for all. I have a PB 2022 application that connected successfully to a SQL Server web database via ADO.NET.
When I upgraded to R2, that connection stopped working. Thanks to this forum, I was able to make changes to the connect string & have it connect successfully.
However, the deployed EXE does not. After digging, it looks like the new SQL Server connection requires the .NET 6 SDK.
If true, this is very disappointing. Many of my users aren't tech savvy, so asking them to install the .NET 6 SDK or the SQL Server Client usually results in a lot of pain... for them and me. :)
With all that said, my question:
Is there a way to connect to a SQL Server database without installing any 3rd party/vendor DB software? If so, what is the preferred/recommended driver? In reading it sounds like the MS OLE DB SQL Server driver also requires an extra install on the client.
My hope is to deploy the required runtime files with the app so it works "out of the box". I've been doing thins prior to 2022 R2 successfully, and feel it's a step backwards if that can no longer be done.
Thanks!
John
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.