I think you just convinced me to ask my employer for an SQL Server class.
I’m inserting the values in SQL Server Manager Studio, using the Import function. I just need to tweak the SQL to retain the identity columns, otherwise all my relationships will be hosed.
I think I might have misunderstood the question. I thought you had a problem inserting into a table where the identity column was already defined and you were trying to override that. Sequences are nice alternatives for identities. Example D. You can also share them between tables, which would help with a temp table.
But, I think I understand now and I don’t think this will fix your problem. Classes are always good though.