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

sql server connect : Connection pooling & Windows authentication


Gai
11/24/2004 1:10:39 PM
Hey all,
I'm connecting to SqlServer 2000 from an ASP.NET web application.
The web application runs under a specific Identity (impersonating to a
specific windows account), the connection string contains
"IntegratedSecurity=SSPI",
and as far as I can see, it (the connection string) is constant.

Will my web application be using the connection pooling mechanism? I'm
asking this because I've been reading that if the conenction string
is constant, the connection pool will be used, however, I haven't found
anything about windows authentication, where the username and password
aren't specified in the connection string, but are managed by windows,
therefore I can't really say if the connection srting is different or not.

Thanks, Gai.

Marc Mertens
11/25/2004 10:09:50 AM
As far as I know, if you create a connection to the sql server and then
impersonate a new user and make a new connection, a new connection pool gets
created even if the connection string is the same.

Hopes this helps

Marc

[quoted text, click to view]

Gai
11/25/2004 12:02:16 PM
Yes, but again, I'm impersonating a single user (not the running user, but
DomainA\UsernameA).
Hope it's more clear now.

Thanks any way, Gai.

[quoted text, click to view]

AddThis Social Bookmark Button