Home Forums SQL Server 2005 T-SQL (SS2K5) Does/can OUTPUT clause turn identity_insert on & off RE: Does/can OUTPUT clause turn identity_insert on & off

  • Missing something, I'm afraid.

    SELECT ... INTO

    always creates a new table. When it creates that table, uses the data types of the source columns, but not primary keys or identity definitions. So, in your example, Archive.MyTest.Id will not be an IDENTITY column, despite your comment to the contrary. It's just a bog-standard INT.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.