Consultor Eletrônico



Kbase P26073: How to configure parameters for LogOnServer method used in t
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/27/2003
Status: Verified

GOAL:

How to configure parameters for LogOnServer method used in the Crystal Reports 9 Runtime Environment to avoid the error "Insufficient information to connect to the datasource"

FIX:

Use the following syntax when connecting to a Progress database:

<CRAppHandle>:LogOnServer("<DLLName>","<ServerName>","","<Username>","<Password>").

DLLName
Specifies the name of the DLL for the server or password protected non-SQL table you want to log on to, for example "PDSODBC.DLL". Note that the DLLName must be enclosed in quotes. DLL names have the following naming convention: PDB*.DLL for standard (non-SQL) databases, PDS*.DLL for SQL/ODBC databases.

ServerName
Specifies the log on name for the server used to create the report.* (For ODBC, use the data source name.) This value is case-sensitive.

UserID
Specifies the User ID number necessary to log on to the server.*

Password
Specifies the password necessary to log on to the server.

*  When you pass an empty string ("") for this parameter, the program uses the value that's already set in the report. If you want to override a value that's already set in the report, use a non-empty string (i.e., "Server A").