Hi,
Recently we have migrated our database from SQL 2008 R2 to 20012. One of our stored procedure is calling another stored procedure and it executes many update statements, out of which 2 update statements which were working fine in SQL 2008R2 Standard edition (Prod) as well as developer edition (Dev and QA) are not working as expected in Prod environment (SQL 2012 standard edition). It works fine in SQL 2012 developer edition (DEV and QA).
Only two differences we have between SQL 2012 QA and Prod are:
1) SQL Edition is different.
2) Number of processors are different. Prod has 8 processors, while QA has 2 processors.
What I have found so far is, if I run 2 update statements without setting up Maxdop, I am not getting out put as expected. But if I apply maxdop 1 or maxdop 2 settings at query level than I am getting data as expected. It does not work with Maxdop 3 or 4 etc.
This is strange behavior. Any one encounter similar issue with SQL 2012 parallelism?