Solved

Creating a Table from a Query Result Set?

Posted on 1998-12-12
1
167 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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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