0

I have a question regarding the credentials used in SQL server connection string. Basically I create a windows service to handle my SQL database procedures (Insert, Select, Delete and Update etc.), this service is logged on as a special windows user I create with sufficient database permissions, it doesn't log on as Local System. Other windows accounts don't have SQL server permission.

So what do I use in my connection string?

Do I use Integrated Security= true ? Or do I use my special user credentials?

Thank you for reading

1
  • 1
    If the service is running as the special user, then just Integrated Security=true should work. Commented Mar 30, 2016 at 0:36

1 Answer 1

1

Use Integrated Security=true if you want the same user that your windows service is running under to access the database.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.