?
Solved

Creating Table Dynamically using CreateTable

Posted on 2003-03-20
2
Medium Priority
?
140 Views
Last Modified: 2010-04-04
I have tried to create a table using the TTable.CreateTable procedure but it does not work. Everytime I try I can the error message this function is not supported.

Can you help
0
Comment
Question by:malaland
[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
2 Comments
 
LVL 9

Expert Comment

by:mocarts
ID: 8174440
Database? (ms sql sever, paradox, dbase.. ?)
Driver type? BDE, ODBC?
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 500 total points
ID: 8175413
use a tquery and a sql-statement like

create table tablename (
   FieldName FieldType,
   NextFieldName OtherFieldType
   )

about the correct syntax refere your database-manual,
because its database dependend

use then execSQL method
to create the table

meikl ;-)
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

777 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