Solved

Copy Tables Only in SQL 2005 Management Studio

Posted on 2007-04-06
3
1,172 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

772 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

12 Experts available now in Live!

Get 1:1 Help Now