What’s proper way to connect ODBC datasources and execute some SQL statements?
TQuery and other BDE components can do it, but if I understood correctly they are now deprecated?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the ADO components:
1) Drag a TAdoConnection from the dbGo tab.
2) Right click and choose Edit connection string.
3) Click build
4) Select Microsoft OLE DB Provider for ODBC
5) Click Next
Then you will be able to select a database.
You can drag a TAdoQuery and connect it to the TAdoConnection to execute some queries.
The rest should be straight forward.