Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
DB programming with SQL Posted by DWDuck on 20 Jan 2011 at 3:56 AM
I'm using SQL database with Delphi 7 what I need to dois filter a database, with SQL code? My current setup is TADOConnection, connected to the SQL database, then ADOTable, connected to the ADOConnection, pointed to the correct table and a Datasource. Now on the search form I want it to filter with the information selected (Field name selected from a combobox and a value entered into a editbox) I want to make use of SQL code, I need to know how do I Filter the ADOTable or do I have to make use of Tquerry? and how do I connect the querry to the SQL database and table ?
Report
Re: DB programming with SQL Posted by softman on 9 Feb 2011 at 11:22 AM
Hi!

I suggest you to manipulate data by setting the sql, and using sql queries instead of using filters, it will be faster, than filter the table (if I understand the question properly).
What kind of database engine are you using along with ADO?


\\///
/O O\
| | |
| _ |
\___/
SoftMan
Report
Re: DB programming with SQL Posted by DWDuck on 9 Feb 2011 at 11:42 PM
Well I'm using sql database. What I want to be able to do is at runtime, the user will specify a set of parameters (bound by what I make available to them) via comboboxes, when they click search I want to generate a sql querry, the only thing is I have never worked with delphi and sql together, I don't know which components in delphi to use together for this purpose.
Darkwing Duck aka DWduck signing off :)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.