473,425 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

Script creation from existing table

Hello All,

I have a table called employees in my mdb file. Is there any way to create a script for table creation from this existing table. Something like reverse engineering.
Is there an option where we can select a table and then say "generate script"

Thanks for your help
Nanda
Aug 31 '07 #1
2 2110
Jim Doherty
897 Expert 512MB
Hello All,

I have a table called employees in my mdb file. Is there any way to create a script for table creation from this existing table. Something like reverse engineering.
Is there an option where we can select a table and then say "generate script"

Thanks for your help
Nanda
the simple way
Expand|Select|Wrap|Line Numbers
  1. SELECT * INTO YourtNewTableName
  2. FROM YourExistingTableName
  3. WHERE FALSE;
or if you like ....the impossible select statement

Expand|Select|Wrap|Line Numbers
  1. SELECT * INTO YourNewTableName
  2. FROM YourExistingTableName
  3. WHERE ((1=2));
Jim
Aug 31 '07 #2
ADezii
8,834 Expert 8TB
Hello All,

I have a table called employees in my mdb file. Is there any way to create a script for table creation from this existing table. Something like reverse engineering.
Is there an option where we can select a table and then say "generate script"

Thanks for your help
Nanda
I am a little confused on exactly what you are requesting. From a Table, in this case employees, do you want to generate the code to recreate this same Table exactly? If this is the question, the answer is yes it can be done, but it would be a complex undertaking recreating the Fields, Indexes, Relationships, Primary Key, Data Types and Sizes of the Fields, Validation Rules, Properties such as Required, Allow Nulls, etc., etc., etc.,....Just for curiosity, why would you want to do this?
Aug 31 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Clay Beatty | last post by:
When you create database diagrams in Enterprise Manager, the details for constructing those diagrams is saved into the dtproperties table. This table includes an image field which contains most of...
1
by: Tim Pascoe | last post by:
I've been trying to get the scripts posted earlier to the group by Clay Beatty to work properly. Using the three components he posted, I have managed to get a new SP generated. However, when I...
7
by: Dr. Know | last post by:
I am working on an ASP page that writes to several databases, ranging from MDBs to x-base. One of the tasks involves using an existing highest value from the DB and incrementing it before...
3
by: Mark | last post by:
Hi all, I am trying to add 4 fields to an existing table which will show record creation date and time and record update date and time. I have managed to do the creation date and time ok by adding...
13
by: Stuart McGraw | last post by:
I haven't been able to figure this out and would appreciate some help... I have two tables, both with autonumber primary keys, and linked in a conventional master-child relationship. I've...
7
by: C.Joseph Drayton | last post by:
I have a problem that I am hoping someone can help me with. First let me describe the problem. I have an HTML form that in one field has an onBlur call to a JavaScript function. When you exit the...
0
by: Ram Patel | last post by:
Hello, I have problem with Atlas XML script which defines behavior to tables for drag and drop like below: <script id="script1" type="text/xml-script"> <page > <components> <control...
5
by: MN | last post by:
Hello, I have a customer table and another table that I need to prepopulate with special customer IDs, unique and not sequential. Is there a way to configure Access to assign the customer ID to...
2
by: M Bourgon | last post by:
I'm trying to automate an auto-export of a table on a daily basis, using BCP. I'm using native format for the BCP because the text in one of the fields can encompass pretty much any ASCII...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.