Integrated Security

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Srinivasa Reddy K Ganji

    #1

    Integrated Security

    Hi

    I have come across this type of code at many places.

    New SqlConnection(" Data Source=(local); Initial Catalog=XYZ;Int egrated
    Security=SSPI;" )

    I assume that the database connection details are hidden here. What is
    "Integrated Security=SSPI"? Can anyone guide me how to set this up using c#.
    Also is it possible to set up this type of connections on web sites hosted
    with commercial web hosting companies. Any examples, links highly
    appreciated.

    Thanks in advance,

    Reddy


  • S. Justin Gengo

    #2
    Re: Integrated Security

    Integrated security mean that the connection to the sql server will be made
    using the currently logged in user's credentials.

    Here's a good article on how to use integrated security:

    http://msdn.microsoft.com/library/de...DomainUser.asp

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzche
    "Srinivasa Reddy K Ganji" <gksreddy@adsgr oup.com> wrote in message
    news:ueFWvgPVDH A.2288@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Hi
    >
    > I have come across this type of code at many places.
    >
    > New SqlConnection(" Data Source=(local); Initial Catalog=XYZ;Int egrated
    > Security=SSPI;" )
    >
    > I assume that the database connection details are hidden here. What is
    > "Integrated Security=SSPI"? Can anyone guide me how to set this up using[/color]
    c#.[color=blue]
    > Also is it possible to set up this type of connections on web sites hosted
    > with commercial web hosting companies. Any examples, links highly
    > appreciated.
    >
    > Thanks in advance,
    >
    > Reddy
    >
    >[/color]


    Comment

    Working...