How do you check if IDENTITY_INSERT is set to ON or OFF in SQL Server?
问题 I've searched for this, but threads in which it appeared tended to have answers from people who didn't understand the question. Take the following syntax: SET IDENTITY_INSERT Table1 ON How do you do something more like this: GET IDENTITY_INSERT Table1 I don't want to do anything whatsoever to the data in the database or to the settings to get this information though. Thanks! 回答1: Since SET IDENTITY_INSERT is a session sensitive, it is managed in buffer level without storing somewhere. This