Click here to Skip to main content
16,004,806 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have windows account "ABC" which has access to connect to sqldatabase.

my account is "xyz" which i use to work on visual studio.

my question is..

How can i create a entity model using "ABC" windows account on current solution which is running on "xyz".

What I have tried:

i can create connection by sql authentication and pass them the username and password, but cannot pass user name and password when using windows account.
Posted
Updated 3-Jul-17 0:03am
Comments
F-ES Sitecore 3-Jul-17 6:08am    
It'll be easier to just use SQL Authentication. The Windows auth you're using now is for when the account running the code has access, if you want to use a different account you'll probably need to use impersonation such that the code runs under the account with the access, or change the anonymous IIS user to the account with the access. Switching to SQL auth will be the easiest solution though.

1 solution

This question is about MS SQL Server authentication.
There are two ways of authentication:
- Windows Authentication
- SQL Server Authentication

as described in
Choose an Authentication Mode | Microsoft Docs[^]

The only way to use your database using the 'xyz' account
is to ask your database administrator to grant rights for the 'xyz' account.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900