Scope_Identity() returning incorrect value fixed?

前端 未结 1 850
囚心锁ツ
囚心锁ツ 2020-12-19 22:42

I\'ve been searching hi and low for an answer to this and figured I would turn to the stackoverflow community. I have been avoiding using type identity id fields fields with

相关标签:
1条回答
  • 2020-12-19 23:35

    My suggestion would be to try the query and test your results. There are a number of work arounds on this such as Output clause and run query not in parralel.

    See Microsoft KB on this http://support.microsoft.com/kb/2019779

    Also a post on this that indicated not sure if fixed in 2008 SP1 but may be fixed in 2008 R2

    http://blog.sqlauthority.com/2009/03/24/sql-server-2008-scope_identity-bug-with-multi-processor-parallel-plan-and-solution/

    0 讨论(0)
提交回复
热议问题