dbTalk Databases Forums  

Just copy a table structure or structure and data to another database

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Just copy a table structure or structure and data to another database in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Barry G. Sumpter
 
Posts: n/a

Default Just copy a table structure or structure and data to another database - 06-21-2004 , 04:48 PM






Hi all,
I just want to copy a table structure or a table structure and data to
another database.
Whats the easiest way to do it?

I've been just copy/pasting in enterprise manager.

Thanks,
baz






Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Just copy a table structure or structure and data to another database - 06-21-2004 , 06:42 PM






In message <eNF8vl9VEHA.3380 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, Barry G. Sumpter
<barrysum (AT) bigpond (DOT) net.au> writes
Quote:
Hi all,
I just want to copy a table structure or a table structure and data to
another database.
Whats the easiest way to do it?

I've been just copy/pasting in enterprise manager.

Thanks,
baz

If you want all structures and data then try a backup and restore.

If you want a more granular level the Copy SQL Server Objects Task may
be a good bet, from within DTS. The is also available through the Wizard
if you select the "Copy objects and data between SQL Server database"
option on about the 3rd or 4th screen.

Depending on your requirements for structires only, you may find that
using Enterprise Manager to generate scripts (Right-click DB, All Tasls,
Generate SQL Scripts) does the job well enough, or there are other third
party tools that do a similar job, often with more features when it
comes to scripting.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.