Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of bcp to replicate the image of a table
Message
From
12/09/2008 12:04:38
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Use of bcp to replicate the image of a table
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01347092
Message ID:
01347092
Views:
69
I have tested bcp to replicate the image of a table. Basically, this serves for bulk insert. So, once I have everything exported to a .dat file, I can then import it into another SQL Server database on an image of that table. That works. If I try it on the same database, having 61 records, I will end up with 61 additional records once I import it. But, this is not what I want. I need to have a clean way to replicate a table from one database to another. I need to preserve the primary keys as is. Is bcp able to do that?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform