Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

login error using BDE comp

Status
Not open for further replies.

rizunb

Programmer
Feb 27, 2003
63
CA
Hello people
ok, I am using BDE components

I have 3 TQuery and 1 stored procedure components.
every time i run the app, it is asking for the password for the database. For this reason, I used the TDatabase component and set the loginprompt property to false, set the alais name to the BDE alais for that database.
Now when I try to run the program, the login window doesnt pop up but the login fails and program doesnt run
it seems like it trying to connect with wrong password or may be Blank PASSWORD.

How and where can I fix the password and then keep the loginprompt to false and get the application working
I hope you understand what i mean
thanks

 
for your database you have an attribute called params (TStrings)
you can make it hold values regarding the username and the password. e.g:
Code:
USERNAME=SYSDBA
PASSWORD=passw

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
You need to set the Params property of your database. I haven't worked in these in a while, but the format is either Param=Value or Param:Value, so it will look something like this:

Password=MyPassword

-Dell
 
ok, I tried that
still doesnt work
it gives me same error
username = icorecrtr

exception edbengineerror in module
unknown user name or password
login failed for user 'icorecrtr'
login incorrect
alais: DBICore
 
OK, I got it working
Thanks guys
you are the best

 
and you're sure you wrote the correct username and password??

try writing username as user name - i can't remember exactly where i ran into this problem... but this little detail solved it

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Username sysdba works for interbase, but that was not mentioned. But you are working with stored procedures, so it could be Interbase?

Steven van Els
SAvanEls@cq-link.sr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top