Jeff,
I think you got it the other way. One can always list the identity columns using system tables. But my question is using system tables how do I find which table has currently set the IDENTITY_INSERT value ON/OFF.
Or Let me rephrase it.
How do I find if the IDENTITY_INSERT is ON or OFF using system tables?
Eg: say I set IDENTITY_INSERT ON for some table and I am not setting it OFF, If the same is set ON again for someother table or for the same table, sql server errs saying it was set ON for so and so table and I am trying to set it ON/OFF for so and so table.
I am looking to break that. Before it errs me out on that, Let me check the status of IDENTITY_INSERT, if ON or OFF, and if ON for which table. i suspect this being set somewhere in some system table and I am kind of running out thoughts, so I posted here. Let me see if I can find it out today myself.
Thanks for your effort.
cheers.
_________________________
- Vijay G
Strive for Perfection
|