If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > using DTS

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-04, 14:21
Arra2 Arra2 is offline
Registered User
 
Join Date: Mar 2004
Location: Kentucky
Posts: 19
using DTS

I'm working on creating a test database on our server which will have the same column names as a current database.

Our programmer wants this test database to work on some issues with our programs and SQL Server performance issues between two diffrent domain.

What I want to do is copy all tables from one database into the new test database but without the data; just the column names.

can i do this with DTS or is there another way of performing this task. When i imported the tables from one database into the test all the data came over of course. I did not see an option to not include the data unless I'm over looking something.

Thanks

The SQL Rookie
Reply With Quote
  #2 (permalink)  
Old 04-01-04, 14:48
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,322
How big is the database?

I'd dump and restore.....
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #3 (permalink)  
Old 04-01-04, 15:14
rdjabarov rdjabarov is offline
Registered User
 
Join Date: Jul 2003
Location: San Antonio, TX
Posts: 3,634
Brett, he/she wants just the structure, not the data.

You can just script the schema from EM and paste it in QA.
Reply With Quote
  #4 (permalink)  
Old 04-02-04, 01:03
rafala rafala is offline
Registered User
 
Join Date: Feb 2004
Location: Poland
Posts: 96
If the database is no big you can use DTS to copy tables and next use truncate table
Reply With Quote
  #5 (permalink)  
Old 04-02-04, 01:33
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,618
Using DTS is over kill. Right click on the db in the Enterprise Manager -> All Tasks -> Generate SQL Script...

Pick what you want included in your test version of the database....
Reply With Quote
  #6 (permalink)  
Old 04-02-04, 01:42
Ruprect Ruprect is offline
12 Monkey Method
 
Join Date: Feb 2004
Location: San Antonio, TX
Posts: 565
Use the DTS Import\Export Wizard

start -- run type "dtswiz" enter
select your source db
select you destination db
check "copy objects and data between sql server databases
clear the copy data check box
clear the copy all objects check box
click select objects and choose the objects you want
continue with the dts import export wizard and create a package that you can reuse.

the you can use it as a prototype and modify it to suit your exact needs.
Reply With Quote
  #7 (permalink)  
Old 04-02-04, 13:54
rdjabarov rdjabarov is offline
Registered User
 
Join Date: Jul 2003
Location: San Antonio, TX
Posts: 3,634
Scott does DTS...
Reply With Quote
  #8 (permalink)  
Old 04-03-04, 00:24
Ruprect Ruprect is offline
12 Monkey Method
 
Join Date: Feb 2004
Location: San Antonio, TX
Posts: 565
I really dig dts.
as a matter of fact rdjabarov i'm teaching a 5 day dts class in about 2 weeks
you could show up and net send everyone into a stupor.

Hee Hee
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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