SQL Server - Get Inserted Record Identity Value when Using a View's Instead Of Trigger

这一生的挚爱 提交于 2019-12-04 07:19:45

You could try SET CONTEXT_INFO from the trigger to be read by CONTEXT_INFO() in the client.

We use it the other way to pass info into the trigger but would work in reverse.

Have you in this case tried @@identity? You mentioned both scope_Identity() and identity_current() but not @@identity.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!