volgens Ken Task.
Qualification for this response: don't run Windows, but have seen something similar on Linux platform.
The 'create_temp_table' is probably the cause of all that follows.
Does the DBuser in your config have capability to create temp table as well as remove temp tables? Can't tell ya how to do that with MSSQL specifically, but can Google:
http://manage.resellerclub.com/kb/servlet/KBServlet/faq1467.html
might help.
'spirit of sharing', Ken