Hello everyone,
I'm currently experiencing an issue when deploying software that uses a SQL database. Everything works correctly on my development PC, however on the PC where I want to install the software, when launching the application, I cannot connect to the SQL database. The SQL database runs on one of the company's servers.
- My Development PC: Windows 10 64-bit PC, Labview 2024 Q1 32-bit + Database Connectivity Toolkit, SQL Server 2014
- Target PC: Windows 10 64-bit PC, it doesn't have Labview or SQL Server
For deployment, I created an installer that only includes the Labview runtime to run the exe on the target PC
Regarding the SQL database connection, I tested two methods:
- The complete connection string in the format "Provider=sqloledb;Data Source=SQL-WS2022;Initial Catalog="DB_Name";User Id="Username";Password="User_Password" which I connect directly to the "Database connection" VI
- Using Windows ODBC32 Data Source (32-bit) (Windows\system32\odbc32.exe) => Creating a new database then entering the database name in Labview + username and password. With this method, in ODBC32 I complete the connection and it indicates that the connection with the server was successful EXCEPT that with Labview, I get an error message.
Both methods work on my Development PC but not on the Target PC. Do I need to install an add-on on the target PC? If so, which one? I don't really understand why it doesn't work with method number 2 (with ODBC32 Data source) because it indicates at the end that it can connect to the database.
Here's the error message=> ADO Error: 0x800A0E7A Exception occurred in ADODB. Connection: Provider cannot be found. It may not be properly installed.
If someone has already encountered this problem and knows how to solve it.
Thank you in advance. Have a good day.