Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Form Authentication w/ a Trusted SQL Server Connection?

Form Authentication w/ a Trusted SQL Server Connection?

Scheduled Pinned Locked Moved ASP.NET
windows-admindatabasesql-serversysadminsecurity
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dr_X
    wrote on last edited by
    #1

    Can someone include the steps that would allow me to connect to a remote SQL Server using a Trusted Connection in IIS? Please include an example of the connect string if possible. Also to note, I am using Form Authentication on the website. Currently we have the connection string encrypted in the registry use a sql server account and want to get away from the model. Michael I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

    M 1 Reply Last reply
    0
    • D Dr_X

      Can someone include the steps that would allow me to connect to a remote SQL Server using a Trusted Connection in IIS? Please include an example of the connect string if possible. Also to note, I am using Form Authentication on the website. Currently we have the connection string encrypted in the registry use a sql server account and want to get away from the model. Michael I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      -Dr_X- wrote:

      Currently we have the connection string encrypted in the registry use a sql server account and want to get away from the model.

      Hi Michael, Do you mean you want to quit storing the encrypted connection in the registry or no longer want to use the sql server account? Anyway, there are a couple of articles that you might be interested in: http://msdn.microsoft.com/library/en-us/dnpag2/html/PAGHT000010.asp?frame=true[^] http://msdn.microsoft.com/library/en-us/dnpag2/html/PAGHT000008.asp?frame=true[^] With the second option you can use with the Form Authentication, but you need to make sure that ASP.NET process identity has access to the DB.

      D 1 Reply Last reply
      0
      • M minhpc_bk

        -Dr_X- wrote:

        Currently we have the connection string encrypted in the registry use a sql server account and want to get away from the model.

        Hi Michael, Do you mean you want to quit storing the encrypted connection in the registry or no longer want to use the sql server account? Anyway, there are a couple of articles that you might be interested in: http://msdn.microsoft.com/library/en-us/dnpag2/html/PAGHT000010.asp?frame=true[^] http://msdn.microsoft.com/library/en-us/dnpag2/html/PAGHT000008.asp?frame=true[^] With the second option you can use with the Form Authentication, but you need to make sure that ASP.NET process identity has access to the DB.

        D Offline
        D Offline
        Dr_X
        wrote on last edited by
        #3

        Thanks, I will have time to give the 2nd one listed a try next week. Michael I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups