Solved

How Do I Copy a SQL Table In Visual Studio 2008

Posted on 2011-09-29
4
249 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

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

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

759 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

23 Experts available now in Live!

Get 1:1 Help Now