Solved

Copy Tables Only in SQL 2005 Management Studio

Posted on 2007-04-06
3
1,189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

635 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