Groups | Blog | Home
all groups > sql server connect > march 2004 >

sql server connect : Problem with SQLOLEDB and iis 6 - threading?


Tom Kaminski [MVP]
3/24/2004 8:29:22 AM
"Fredrik Gjärdman @inwarehouse.se>" <fredrik.gjardman<remove> wrote in
message news:uQIB01ZEEHA.1228@TK2MSFTNGP11.phx.gbl...
[quoted text, click to view]

No - but are you using ASP? If so you might get a better answer at
microsoft.public.inetserver.asp.db ...

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/


Fredrik Gjärdman
3/24/2004 1:42:20 PM
I run a website on a dual proc. W2003 box with a clean setup running iis
6.0. The site does a ton of data access using PROVIDER=SQLOLEDB against a
SQL 2000 server with all the latest stuff.

When I put load on it it starts to process requests and perfmon counters
look as expected but efter a minute it seems to hang - still processing the
number of simultaneous requests I load it with and it does nothing until the
requests time out. Then it starts over again.

I have no locking problems in the DB and nothing is happening anywhere - no
events nothing.

Then i change PROVIDER=SQLOLEDB to DRIVER={SQLServer} and the problem is
gone.

I have a top of the line setup that is not yet in production so it is a
clean test environment where I have full control of everything and nobody
else is doing anything. The only reason I can come up with is that this is a
contention problem of some kind and to since changing the driver does the
trick I guess threading issues with the driver.

I remeber in the old days that it was possible to change the threading model
of ADO but now I can't find any reference to it.

Any ideas?


Bojidar Alexandrov
3/24/2004 3:15:12 PM

[quoted text, click to view]

Hmm hmm if that is your problem....
here:
Program Files\Common Files\System\ado\adofre15.reg

Bojidar Alexandrov

Fredrik Gjärdman
3/24/2004 3:58:06 PM
That's what I thought but it does not exist in W2003


[quoted text, click to view]

Bojidar Alexandrov
3/25/2004 9:42:46 AM
File "adofre15.reg"

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000507-0000-0010-8000-00AA006D
2EA4}\InprocServer32]
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000514-0000-0010-8000-00AA006D
2EA4}\InprocServer32]
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{0000050B-0000-0010-8000-00AA006D
2EA4}\InprocServer32]
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000535-0000-0010-8000-00AA006D
2EA4}\InprocServer32]
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000541-0000-0010-8000-00AA006D
2EA4}\InprocServer32]
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000560-0000-0010-8000-00AA006D
2EA4}\InprocServer32]
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000566-0000-0010-8000-00AA006D
2EA4}\InprocServer32]
"ThreadingModel"="Both"

AddThis Social Bookmark Button