Crystal Reports Runtime LogOnServer method fails with error "Logon Failed" (5890)

« Go Back


Article Number000021843
EnvironmentProduct: Progress
Version: 9.1D, 9.1E
Product: OpenEdge
Version: 10.x, 11.x
OS: Windows
Other: Crystal Reports
Question/Problem Description
Crystal Reports Runtime LogOnServer method fails with error "Logon Failed" (5890)
Crystal LogOnServer method is required to establish an ODBC connection for the report.
Code fails at the LogOnServer method with error "Logon Failed" (5890)
Using the following syntax for the LogOnServer method:
chApplication:LogOnServer ("crdb_odbc.dll", "<ODBC DSN Name>", "", "<Username>", "").
Steps to Reproduce
Clarifying Information
Using Crystal Reports Viewer Control to display a Crystal report.
Error MessageError occurred while accessing component property/method: LogOnServer.
Logon failed.
Error code: 0x80020009 USER-INTERFACE-TRIGGER <Path>. (5890)
Login failed.
Details: HY000:[DataDirect-Technologies][ODBC PROGRESS Driver]Insufficient information to connect to the datasource.
Error 'Insufficient information to connect to the datasource' can be found in the ODBC Trace Log
Defect/Enhancement Number
No password is specified for the connection. If the Password parameter is left blank then no password is sent to the database. It is not possible to connect via Crystal without specifying a password even when the ODBC 'Test Connect' succeeds without one.
Option #1

Set the Password to a space character so that it is not blank.
Configure the LogOnServer method as follows:
chApplication:LogOnServer ("crdb_odbc.dll", "<ODBC DSN Name>", "", "<Username>", " ").

Option #2

Create a new user in the database and use the Username and Password to establish the connection.

Configure the LogOnServer method as follows:
chApplication:LogOnServer ("crdb_odbc.dll", "<ODBC DSN Name>", "", "<Username>", "<Password>").
Last Modified Date9/13/2015 3:33 PM

The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.

Was this article helpful?


Your feedback is appreciated.

Please tell us how we can make this article more useful. Please provide us a way to contact you, should we need clarification on the feedback provided or if you need further assistance.

Characters Remaining: 1025