Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import a table from one db to another
Message
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01565436
Message ID:
01565441
Views:
41
>>>Hi,
>>>
>>>I need to copy a table from one database to another, on the same SQL Server. I tried using Task -> Import wizard but does not seem to give me a choice of just selecting one table. Is there a way to select just one table when Importing? Or it there another way to copy the entire table from one db to another?
>>>
>>>TIA
>>
>>
>>You can do that straight from SSMS. Right Click on the database you want to import a table into and click on Tasks and then Import Data. A wizard will walk you through it.
>
>I see. I get a lot of violations. So it looks like I have to disable the Identity columns on the table into which importing. Otherwise, the Import probably copies the values from the Identity columns.. Is this correct?

No. If you go into the mapping options, you can tell it to allow identity insert. Only do that if you want to make sure your identity fields are in fact identical to the original table.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform