Home All Groups Group Topic Archive Search About

Cooecting to SQL server ??

Author
4 Aug 2006 12:03 AM
serge calderara
Dear all

if my conection string is based on Integrated Security, if from my
applciation which used windows identification, is there a default log on user
that will be used when connecting to SQL ( same as ASp Account when anonimous
is used) ?

thnaks for the info

regards

Author
4 Aug 2006 11:02 AM
oldbear
Hi

The most simple answer is that the same security identity that the code is
running under will be used to access SQL Server.

You can check the current security context by calling
WindowsIdentity.GetCurrent() to obtain the the actual identity that the
application is running under.

This context will be dictated by the settings on IIS and whether your web
app is impersonating (set in web.config).


--
----------------------------------
Chris Seary
http://blog.searyblog.com/




Show quoteHide quote
"serge calderara" wrote:

> Dear all
>
> if my conection string is based on Integrated Security, if from my
> applciation which used windows identification, is there a default log on user
> that will be used when connecting to SQL ( same as ASp Account when anonimous
> is used) ?
>
> thnaks for the info
>
> regards