Board index » cppbuilder » Connecting the database.

Connecting the database.


2004-02-24 02:16:36 AM
cppbuilder86
Hi every1.
I usualy use bde (TDataSet and TQuery) to access databases via ODBC.
The problem is that, when i connect to the database, a validation login
window appears.
I know that there are another alternatives to ODBC.
Wich alternatives do i have? COM?
I've heard about it.
In reallity what i want to know is:
1 - How can i excape to ODBC programing?
2 - How can i make a connection to database without appear that login
window? I want to validate users in a specific table instead of creating
database users.
Thanks in advance,
Nuno.
 
 

Re:Connecting the database.

If I understand you right, you can use TDatabase as the data source for the
TQuery. It has a LoginPrompt property that you can set to false at runtime.
"Tuga" < XXXX@XXXXX.COM >wrote in message
Quote
Hi every1.
I usualy use bde (TDataSet and TQuery) to access databases via ODBC.
The problem is that, when i connect to the database, a validation login
window appears.
I know that there are another alternatives to ODBC.
Wich alternatives do i have? COM?
I've heard about it.
In reallity what i want to know is:
1 - How can i excape to ODBC programing?
2 - How can i make a connection to database without appear that login
window? I want to validate users in a specific table instead of creating
database users.

Thanks in advance,
Nuno.