 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
doug Guest
|
Posted: Wed Jan 25, 2006 3:45 am Post subject: LogonServer in Crystal 10 using ADO |
|
|
Hi Folks,
I would like my delphi app to tell Crystal (10) to log on to the
SQL database before I pull up any reports, and I want all of
the reports to use the resulting connection. Problem is that I
can't get LogonServer to LogOn. Works fine with DLLName =
pdssql.dll, but not with ADO (DLLName = crdb_ado.dll). I would
convert all of my reports to use pdssql.dll, but I don't know
how. Anyone know?
Here's what I am trying on FormShow:
i := Crpe1.LogOnServer.Add('SERVERNAME');
with Crpe1.LogOnServer[i] do
begin
DLLName := 'crdb_ado.dll';
UserID := 'user';
Password := 'password';
DatabaseName := 'dbname';
if LogOn then
ShowMessage('The Logged On')
else
ShowMessage('Error Logging on to Server');
end; |
|
| Back to top |
|
 |
doug Guest
|
Posted: Thu Jan 26, 2006 4:51 am Post subject: Re: LogonServer in Crystal 10 using ADO |
|
|
Followup:
It appears that the LogOnServer functionality is not working
if crdb_ado.dll is specified either in VCL or in RDC
(Crystal 10). "Logon Failed" is the result either way.
The idea is to save time in the report init
(hopefully) by directing all subreports to a common session
that can be initiated before any reports are requested.
If anyone has this working, please let me know. Thanks,
Doug |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|