Solved

Creating a Table from a Query Result Set?

Posted on 1998-12-12
1
168 Views
Last Modified: 2010-04-04
I would like to automatically Create a table from a Delphi Query (to produce the same result that Paradox queryvar.executeQBE("NewTableName.db") produces).
Can you help?
0
Comment
Question by:rickofkirkwood
1 Comment
 
LVL 4

Accepted Solution

by:
dwwang earned 50 total points
ID: 1350796
Since Delphi's LocalSQL does not support Select ... Into statements, you can use BatchMove:

Put a TBatchMove and a Ttable component on the form with the query, then set:

     BatchMove1.Source:=Query1;
     BatchMove1.Destination:=Table1;
     BatchMove1.Mode:=batCopy;
     Table1.TableName:='NewTable.DB';
     query1.sql.text:='Select * from employee where ...';
     query1.Open;
     BatchMove1.Execute;

Hopefully this is a easy way :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now