Solved

How Do I Copy a SQL Table In Visual Studio 2008

Posted on 2011-09-29
4
255 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
[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
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
2008 to 2016 jump (SQL Server) 1 32
I am new to using JSON in SQL Server 2 57
Read top line from CSV file 14 58
Difference between Highcharts and Mapbox 10 44
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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