When I’m trying to create the entity model in Visual Studio 2010, I want to connect to a database that my current windows user can’t access, how can I specify different login/password to access the database ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Two ways that I can think of off the top of my head.
Use SQL Server Mixed Mode Authentication and have the application use a username and password controlled by SQL Server. That way you can create accounts on the SQL Server and connect as who ever you like when needed.
Have your application run under a different user account (Run As…). That way you can continue to use Windows Authentication on SQL Server and not have to open it up to additional ways of authenticating to it (i.e. mixed mode authentication)
There are pros and cons to each, it really depends on what you are trying to achieve.