• - Maybe creating a DTS package to load your tables may be the way to go, because it has the option "keep identities"

    -If using set identity_insert on, keep in mind you have to list all columns in your insert statement.

    e.g.

    set identity_insert on

    insert into mytable(col1,col2,col333,...)

    select * from mysourcetable

    set identity_insert off

    dbcc checkident('mytable') -- check bol

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me