Instead of trigger in SQL Server - looses SCOPE_IDENTITY?
- by kastermester
Hey StackOverflow,
I am (once again) having some issues with some SQL.
I have a table, on which I have created an INSTEAD OF trigger to enforce some buissness rules (rules not really important).
This works as intended. My issue is, that now when inserting data into this table, SCOPE_IDENTITY() now returns a NULL value, rather than the actual…