Home Forums SQL Server 2005 T-SQL (SS2K5) Data transfer while dynamic increment of duplicate values. RE: Data transfer while dynamic increment of duplicate values.

  • Neeraj Dwivedi (5/7/2013)


    Lowell, he has mentioned in first post that The primary key combination for the destination table is "ROBumber + ROTime" .

    agreed, but if he auto generates an overlapping value ,"ROBumber + ROTime" + 1 in the case of duplicate "ROBumber + ROTime" from the source, he of course could duplicate the value, but against a different row than was incremented.

    that was my point...he's not guaranteeing a PK value is unique with the current logic of arbitrarily incrementing a value.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!