Solved

Copy Tables Only in SQL 2005 Management Studio

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
point in time restore in SQL server 26 43
removing unwanted rows from an sql server ranked table 13 36
access to sql migration 5 23
Related to SQL Query 5 21
I have a large data set and a SSIS package. How can I load this file in multi threading?
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

749 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