Board index » delphi » Passwords at Login w/ TDatabase for Paradox

Passwords at Login w/ TDatabase for Paradox

I want to automatically login to the Paradox tables w/o having the user
enter the password. I have a TDatabase with a Password Param set
(Password=The Password) and also have tried the OnLogin event, both without
success. I have set the LoginPrompt to false. What am I missing/

Thanks
Ed Dressel

--
Some plan for retirement, others for eternity.
Does not good to gain the world yet lose the soul.

 

Re:Passwords at Login w/ TDatabase for Paradox


Try to had the password to the session
like Sessions[0].addpassword('the password');

Jean-Philippe Dumas
Project Manager

Quote
Ed Dressel wrote:

> I want to automatically login to the Paradox tables w/o having the user
> enter the password. I have a TDatabase with a Password Param set
> (Password=The Password) and also have tried the OnLogin event, both without
> success. I have set the LoginPrompt to false. What am I missing/

> Thanks
> Ed Dressel

> --
> Some plan for retirement, others for eternity.
> Does not good to gain the world yet lose the soul.

--
----------------------------------------------------------
 Jean-Philippe Dumas
----------------------------------------------------------
 Consultant Analyste Informatique - Computer Consultant
 Photographe de Presse - Press Photographer
----------------------------------------------------------
 2505 Andre-Fleury, Beauport, Qubec, Canada, G1C 4K8
 (418) 626-8070 -- Fax: (418) 626-8070
 eMail: duma...@total.net
 WWW:   http://www.total.net/~dumasjp

Re:Passwords at Login w/ TDatabase for Paradox


Thanks. Worked great.

Ed Dressel

--
Some plan for retirement, others for eternity.
Does not good to gain the world yet lose the soul.

Quote
Jean-Philippe Dumas <duma...@total.net> wrote in message

news:37B8BEB1.63A512DB@total.net...
Quote
> Try to had the password to the session
> like Sessions[0].addpassword('the password');

> Jean-Philippe Dumas
> Project Manager

> Ed Dressel wrote:

> > I want to automatically login to the Paradox tables w/o having the user
> > enter the password. I have a TDatabase with a Password Param set
> > (Password=The Password) and also have tried the OnLogin event, both
without
> > success. I have set the LoginPrompt to false. What am I missing/

> > Thanks
> > Ed Dressel

> > --
> > Some plan for retirement, others for eternity.
> > Does not good to gain the world yet lose the soul.

> --
> ----------------------------------------------------------
>  Jean-Philippe Dumas
> ----------------------------------------------------------
>  Consultant Analyste Informatique - Computer Consultant
>  Photographe de Presse - Press Photographer
> ----------------------------------------------------------
>  2505 Andre-Fleury, Beauport, Qubec, Canada, G1C 4K8
>  (418) 626-8070 -- Fax: (418) 626-8070
>  eMail: duma...@total.net
>  WWW:   http://www.total.net/~dumasjp

Re:Passwords at Login w/ TDatabase for Paradox


Quote
>I want to automatically login to the Paradox tables w/o having the user
>enter the password. I have a TDatabase with a Password Param set
>(Password=The Password) and also have tried the OnLogin event, both without
>success. I have set the LoginPrompt to false. What am I missing/

You need to have a userName as one of the parameters of the Tdatabase as well as
password.  You also need to insure that all the tables are connected to the
Tdatabase.

--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Re:Passwords at Login w/ TDatabase for Paradox


You must call Session.AddPassword before you try to open the table. See the
AddPassword method of TSession in the on-line help.

Bill

--

Bill Todd - TeamB
(TeamB cannot respond to questions received via email)

Other Threads