PC Review


Reply
Thread Tools Rate Thread

copy fields from one table to the field structure of another table

 
 
Educo Gent
Guest
Posts: n/a
 
      10th Feb 2005
How can I copy fields (not records) from one table to the field structure of
another table (in the same database on a sql server 2000)? So that I have
not to re-type the name and properties of the fields and to be sure the name
and properties of the fields are the same in both tables.

Thanks,
Hugo


 
Reply With Quote
 
 
 
 
Jim Rand
Guest
Posts: n/a
 
      10th Feb 2005
Here is one way.

From SQL Enterprise Manager, right click the table. Select all tasks,
generate sql script.

In the options tab, check script indexes, triggers, and primary keys. For
the file format, choose Windows text (ANSI)

Press OK, save the sql file and edit it with notepad to remove name
conflicts. Run the resulting SQL from query analyzer.






"Educo Gent" <(E-Mail Removed)> wrote in message
news:aiHOd.8103$(E-Mail Removed)...
> How can I copy fields (not records) from one table to the field structure

of
> another table (in the same database on a sql server 2000)? So that I have
> not to re-type the name and properties of the fields and to be sure the

name
> and properties of the fields are the same in both tables.
>
> Thanks,
> Hugo
>
>



 
Reply With Quote
 
 
 
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      10th Feb 2005
If you are not interested with things like Indexes, then a simple Copy&Paste
in design mode will fill the bill. To activate the Past, make sure to
select a row and not only a cell.

S. L.

"Educo Gent" <(E-Mail Removed)> wrote in message
news:aiHOd.8103$(E-Mail Removed)...
> How can I copy fields (not records) from one table to the field structure
> of
> another table (in the same database on a sql server 2000)? So that I have
> not to re-type the name and properties of the fields and to be sure the
> name
> and properties of the fields are the same in both tables.
>
> Thanks,
> Hugo
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update one field from one table to another field in another table. Fox Microsoft Access Forms 2 15th Aug 2009 05:09 PM
Multiple fields in one table link to one field in another table Amy E. Baggott Microsoft Access Queries 3 1st Apr 2009 11:59 PM
Copy data from one field in a table to a field in another table. =?Utf-8?B?SG93MQ==?= Microsoft Access Form Coding 1 23rd Aug 2007 12:43 PM
moving multiple fields in one table to one field in another table =?Utf-8?B?UmVkIENlbnRyZQ==?= Microsoft Access Getting Started 1 24th May 2006 10:51 AM
Joining two fields from one table to one field in another table Alex Martinez Microsoft Access Queries 6 19th Jan 2006 06:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 AM.