• No. This is incredibly easy to evaluate. Create a table and try it out.

    create table IdTest

    (

    MyId int identity not null,

    SomeValue varchar(10)

    )

    insert IdTest

    select 'Row 1'

    SET IDENTITY_INSERT IdTest on

    insert IdTest(MyId, SomeValue)

    select 2, 'New Value'

    SET IDENTITY_INSERT IdTest off

    insert IdTest

    select 'Final Test'

    Select * from IdTest

    drop table IdTest

    Now unless your identity column is a primary key or has a unique index there is nothing to prevent duplicates.

    You can read about the Set IDENTITY_INSERT on BOL. http://msdn.microsoft.com/en-us/library/ms188059.aspx

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/