Troubleshooting
Problem
Further reading is available here --
Symptom
Cognos displays the error after the connection test is unsuccessful:
QE-DEF-0285 The logon failed.
QE-DEF-0322 The connection string is invalid.
RQP-DEF-0068 Unable to connect to at least one database during a multi-database attach to 1 database(s) in:
testDataSourceConnection
UDA-SQL-0031 Unable to access the "testDataSourceConnection" database. Check that the connection parameters to the database are configured correctly. For example, ensure that the data source connection contains the signon information, such as a password, to connect to the database.
UDA-SQL-0534 Invalid connection string.
UDA-SQL-0206 The OLEDB driver returned the following value: HRESULT= -2147221164".
BME-EX-0144 Trace back:
BmtPlayTransaction.cpp(788): QFException: CCL_RETHROW: BmtPlayTransaction::DoAction
BmtActionsHelper.cpp(488): QFException: CCL_RETHROW: BmtActionsHelper::DoAction
QFSSession.cpp(1190): QFException: CCL_RETHROW: QFSSession::ProcessDoRequest()
QFSSession.cpp(1188): QFException: CCL_CAUGHT: QFSSession::ProcessDoRequest()
QFSSession.cpp(2082): QFException: CCL_RETHROW: QFSSession::SessionProcessTestConnection()
Source/QE_RsApi.cpp(2112): QFException: CCL_RETHROW: QE
Source/QEI_ConnectionFault.cpp(880): QFException: CCL_THROW: QE
Cause
Resolving The Problem
This allows the user to manually define the connection string and enforce the usage of the MSOLEDBSQL driver.
- Download oledb driver from Microsoft (https://learn.microsoft.com/en-us/sql/connect/oledb/download-oledb-driver-for-sql-server?view=sql-server-ver15) and verify it is present in the %SYSTEMROOT%\system32\ folder on Windows OS.
- Create New Connection >Select Other Type
- Create Signon with credentials (if needed)
- Paste connection string from previous native client failed connection and replace Provider=SQLNCLI11 with Provider=MSOLEDBSQL. No other changes
OLD string with Microsoft SQL Server Native Client:
^User ID:^?Password:;LOCAL;OL;DBInfo_Type=MS;Provider=SQLNCLI11;User ID=%s;Password=%s;Data Source=test1234.zzz.aaa.com;Provider_String=Initial catalog=testDB;@COLSEQ=
NEW String with "Other Type":
^User ID:^?Password:;LOCAL;OL;DBInfo_Type=MS;Provider=MSOLEDBSQL;User ID=%s;Password=%s;Data Source=test1234.zzz.aaa.com;Provider_String=Initial catalog=testDB;@COLSEQ=
5. Test the Connection and see it succeeds
It is important to note that this workaround will not allow Web-based modeling.
Related Information
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
23 June 2023
UID
ibm16988613