Solved

Management Studio - Move table from one database to another.

Posted on 2007-04-11
3
195 Views
Last Modified: 2010-03-19
This question is about SQL Server 2005 Management Studio.
Both databases are visible within Management Studio.  They are both in the same instance.  All permissions are properly granted.

Please outline the steps necessary (using Managment Studio) to move a table from one database to another.

 
0
Comment
Question by:Volibrawl
[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
3 Comments
 
LVL 21

Expert Comment

by:Kevin3NF
ID: 18889049
Schema only, or schema and data?  If you want data, you are probably going to have to use SSIS which I am not very familiar with.

For just schema, right click the table, Script table as>>Create To>>(pick the appropriate option)

Then run that script against the other database to create it
0
 
LVL 9

Author Comment

by:Volibrawl
ID: 18898046
Schema and data.
0
 
LVL 21

Accepted Solution

by:
Kevin3NF earned 125 total points
ID: 18898403
SSIS or if the destination table does not exist:

Select *  --all columns
Into MyTestDB2.dbo.Test --destination database (usnig 3 part naming convention)
From MyTestDB.dbo.Test  --source database
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
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.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

691 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