Symptom
When trying to connect to a reporting database the following errors occur
QE-DEF-0285 The logon failed
QE-DEF-0323 The DSN(ODBC)/ServiceName is invalid. Either the DSN is missing or the host is inaccessible.
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” databasename
UDA-SQL-0564 [Microsoft OLE DB Provider for SQL Server][DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist or
access denied. (SQLSTATE=08001, SQLERRORCODE=17)
Cause
The MSSQL instance not running on standard port 1433.
Environment
Windows 2003, Microsoft SQL Server 2000
Solution
Ask your SQL DBA for the correct port number. Then create the datasource connection. The port must be entered when the server name is defined. This must be in the form of ‘server name,port’. Be sure to use a comma to separate the server name and the port number. This port number should be the port number that the database instance is running on.
Steps:
- From Cognos Connection click ‘Tools’, ‘Directory’, ‘Data Sources’
- Select the ‘New Data Source’ icon
- Type a name in the ‘Name’ dialog box and click Next
- For the type select ‘OLE DB’ and click ‘Next’
- In the server name dialog box type the server name followed by a comma and then the port the database server is running on. This should be in the notation of ,
- Enter the required information as per the usual creation of a datasource.
- When available, click ‘Test’ to test the connectivity to the new datasource.