Solved

Copy Tables Only in SQL 2005 Management Studio

Posted on 2007-04-06
3
1,174 Views
Last Modified: 2011-09-20
Hello Experts,

In SQL 2000 Enterprise Manager, it showed more options and I could choose to just copy tables in the "Import Data" dialogue.

With SQL 2005 Management Studio, I tried to do the same thing - Import Data (and I made sure I was using the Microsoft OLE DB provider for SQL), and I can't see where the option is to not copy data.

Thanks much.

Tom
0
Comment
Question by:TomJatABRG
3 Comments
 
LVL 9

Accepted Solution

by:
fuzzboxer earned 250 total points
ID: 18867638
I find that program difficult to use.  I suggest switching to EMS SQL Manager 2005: http://www.sqlmanager.net/products/mssql/manager which lets you do exactly what you want pretty easily.

If you have no option to switch, you can create a query using Copy Structure: http://msdn2.microsoft.com/en-us/library/aa977443(vs.71).aspx
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 250 total points
ID: 18868357
Why don't you just generate the SQL script for all the tables and run it? But to answer your question if you insist on using the wizard than you will have to select "Write a query to specify the data to transfer" instead of "Copy data from one or more tables or views"  You can then create a query with a condition that will never be met for example WHERE 1=0.  The probelm with this approach, asside from the fact that it is cumbersome, it will not create any indexes or constraints and all your IDENTITY columns will have to be recreated.
0
 
LVL 2

Author Comment

by:TomJatABRG
ID: 18876544
Thanks for you help.  But it seems like Microsoft once again took away functionality and complicated something instead of making it more user friendly.  Boo, Microsoft.

Thanks again,

Tom
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now