Quote:
|
Originally Posted by Pat Phelan
This kind of problem is symptomatic of multiple sub-problems.
|
That comment wasn't an accident.
One problem is that you are being bitten by concurrent executions of the code that produces your temp table, and possibly by connection pooling too.
You have multiple temp tables, from multiple spids (connections to your database) with a constant constraint name of UniqueFields that is causing subsequent executions of the CREATE TABLE to fail.
I'd be willing to wager that there are other issues too, but these are enough to keep us amused for the moment.
The solution to this problem is to:
a) Stop execution of all running spids (disconnect them) that have a #teFotographen table at the moment.
b) Create the constraint with a default name (which is unique for each execution).
This should get you far enough to find the next problem!
-PatP