As far as i know, this is the only way to set the identity_insert.
Try to encapsulate the identity insert code into a TRIGGER..(personally never tried That).
If you have multiple Tables, you have to SET the IDENTITY_INSERT to off before you work on the second table and turn the identity_insert to ON