| 
	Group: StrataFrame DevelopersPosts: 6.6K, 
    Visits: 7K
 
 | 
                    
			            Greg is correct.  The reason is this.  When you call the ExecuteNonQuery, the connection session is only open for that one call.  So when you set the IDENTITY_INSERT ON, execute, then execute the command.  The IDENTITY_INSERT is back to off.
 
 
 When I do this type of thing I generally like to create a stored procedure as it makes it a little easier.
 
 |