08-27-04 11:19 PM
Hey everyone,
I have spent the last few hours trying to get my ISAPI dll to connect
to SQL server 2000 using IIS 6 connection pooling, and I have finally
got it working, but I don't understand why it works. I am hoping
someone here can help me.
Problem:
I have a basic ISAPI dll, that was using the below connection string
to connect to our database.
Provider=SQLOLEDB.1;User ID=XXXXXX;Password=XXXXXX;Data
Source=XXXXXXXXXX;Initial Catalog=XXXXXXX;Network Library=DBMSSOCN
It worked fine under IIS 6 if we had the 'Run WWW service in IIS 5.0
isolation mode' checked. However without this checked, it would fail
in the connect call with the following error
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
access denied.
Solution:
Anyway, after reading the following post,
[url]http://www.google.ca/groups?hl=en&lr=&ie=UTF-8&threadm=uaSMm7bYDHA.1492%40TK2MSFTN
GP12.phx.gbl&rnum=4&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26q%3DIIS%2B6%2Bsq
l%2Bserver%2B1433%2BSQL%2BServer%2Bdoes%
2Bnot%2Bexist%2Bor%2Baccess%2Bdenied.[/url
]
I fixed the problem by adding the default port number (1433) to the
connection string like so
Provider=SQLOLEDB.1;User ID=XXXXXX;Password=XXXXXX;Data
Source=XXXXXXXXXX,1433;Initial Catalog=XXXXXXX;Network
Library=DBMSSOCN
This has solved my problem, and now everything is fine and dandy,
except for the fact that I have no idea why what I did had any affect
my problem.
If someone can answer this for me, I will truly be impressed!!
Thanks in advance for any feedback!
Cam Schwieder
[ Post a follow-up to this message ]
|