Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Identity column import Expand / Collapse
Author
Message
Posted Tuesday, January 29, 2013 11:35 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, March 21, 2013 2:14 AM
Points: 77, Visits: 184
I need to import data of a table from prod environment to my dev DB.
This table is having one identity column and also there are gaps in between as some records have been deleted from prod.
Now I want all columns value including identity column to dev DB same as Prod DB table.
How can i achieve it using SSIS ?
Post #1413462
Posted Thursday, January 31, 2013 2:40 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 10:13 AM
Points: 4,227, Visits: 9,460
Two options:

1) Remove the IDENTITY definition on the destination table and insert as usual.
2) Set identity insert on during the import and insert as usual.


____________________________________________________________________________________________

Help us to help you. For better, quicker and more focused answers to your questions, consider following the advice in this link:

http://www.sqlservercentral.com/articles/Best+Practices/61537/

If you are asking for help and your post does not contain a question, you should expect responses which do not contain any answers. Put a question mark in there somewhere - it's not rocket science.
Post #1413934
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse