LogonServer

LogonServer logs on to the specified server and returns a unique connection id which can be used to log off of this server using the LogoffServer.

Syntax

[form.]Report.LogonServer (dllName$, ServerName$, DatabaseName$, UserID$, Password$)

For example:

connectionId% = CrystalReport1.LogonServer ("pdsodbc.dll", "Accounting", "Administration", "bobg", "bigboard")

«Connects to the "Administration" database via the "Accounting" data source using the user ID "bobg" and the password "bigboard".»

Parameters

dllName

Specifies the name of the Crystal Reports DLL for the server or password protected non-SQL table you want to log onto, 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 logon name for the server used to create the report. *For ODBC, use the data source name.

DatabaseName

Specifies the logon name for the database used to create the report.

UserID

Specifies the user ID necessary to log on to the server.

Password

Specifies the password necessary to log on to the server. When you are using this structure to retrieve information using PEGetNthTableLogOnInfo, the password parameter is undefined.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com