on 2016 Aug 17 8:28 PM
I am trying to get a PowerBuilder 12.5 application to connect to MS SQL Server 2014 using ADO.Net.
When running the app from inside PowerBuilder, all is well. When running the app using the exe, I get the following error:
Could not connect to the database.
SQL error code: 999
SQL error message: The driver's namespace is not set.
Sybase.PowerBuilder.DbExt.dll and Sybase.PowerBuilder.Db.dll have been copied into various file folders, so I don't think accessing them is the problem.
This is the DBParm I'm using:
sqlca.DBParm = "Namespace='System.Data.SqlClient', DataSource='" + sqlca.ServerName + "', Database='" + sqlca.Database + "', ProviderString = 'MultipleActiveResultSets=False', CommandTimeOut=900"
Thanks in advance,
Greg
Hi Greg;
Have you ...
1) Installed the SS client?
2) Registered the Sybase.PowerBuilder.xxxxx.dll's in the GAC?
3) Is the ADO driver present (System.Data.SqlClient
) & registered in the GAC?
FYI: https://support.microsoft.com/en-ca/kb/307283
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.