Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am using windows security to connect to sql server.

what is the connectionstring that I can use so that a connection can be established based on the user having already logged into windows xp?

 

p.s I do not want to use this as it is for a user which has a login in the sql server.

"Server=SVR07;Database=servername;User ID=TestUsers;Password=12345678"

 

 

Thanks

Farshad
Posted

Try

 

"data source = "ServerName"; initial catalog = "DatabaseName"; Integrated security = "SSPI"

 

Providing the user who is logged on to XP has the relevant permissions.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...