Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Creating a Table from a Query Result Set?

Posted on 1998-12-12
1
Medium Priority
?
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
dwwang earned 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

647 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