Solved

How Do I Copy a SQL Table In Visual Studio 2008

Posted on 2011-09-29
4
252 Views
Last Modified: 2012-05-12
I'm in Visual Studio, Server Explorer, and I've attached to the SQL server. I go to tables and right-click on a specific table, select copy.

From here I want to be able create a copy of the table. I've clicked around a bit, Googled etc. but I haven't found an option to paste or create a new table this way.

Is this possible or am I just missing the mark here? We have some failry complex tables that are already setup the way I need, and we also have a number of tables that need to be moved from an older SQL 2005 server.

I am not that versed in SQL commands, so I was hoping this would be a viable option.

Thanks in advance!!

0
Comment
Question by:JB4375
  • 2
4 Comments
 
LVL 8

Expert Comment

by:Leo Torres
ID: 36816717
try

Select * into New_table
from  Original_Table
0
 
LVL 8

Accepted Solution

by:
Leo Torres earned 500 total points
ID: 36816776

If you can even use SSIS

Object Source
then Choose
Object Destination

Source can be table, file, xml, excel
same for Destination

You want to do from table in DB to table in an other db Or even same DB

this link may help
http://www.kodyaz.com/articles/transfer-sql-server-objects-task.aspx
0
 
LVL 11

Expert Comment

by:SThaya
ID: 36890590
Hi,


use the Transfer SQL Server Objects in SSIS . it helps you to transfer all obejcts from one server to another or within the same server .

http://msdn.microsoft.com/en-us/library/ms142159.aspx

Note : All the user's logins are should be active ...
0
 
LVL 1

Author Closing Comment

by:JB4375
ID: 36912895
Thanks!!
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 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

13 Experts available now in Live!

Get 1:1 Help Now