I made a Web Service, it uses windows authentication, and I need it to have permissions in the MSSQL database
There are other databases that have a user "$webserver" added
Security / Users / $WebServer
I am trying to add my user in the same way, but no, the user is not found:
1.- Right click on Database -> Security -> Users -> New User
2.- In the pop-up window -> User Type
-> I selectWindows user
3.- User Name I select the button and in the pop- up ...
window I selectSelect User or Group
Locations
Entire Directory
In the same window, in Object Types
active all the boxes:
Finally, I write Dominio/$ServerName
and give it inCheck Names
And I get this error:
If I try to give permissions to a file system folder to the server, in Object Types I get this element that does not appear in MSSQL:
And when you click on Check Names
, it finds it correctly
Why does the Computers object not appear in the user search box in MSSQL?
The answer to this, I guess, is because MSSQL doesn't want me to add server accounts as users. Because?
How can I give permissions to my WebServer on my database?
Well, just add Domain\ServerName$ in username and login without looking for anything and I gave it OK and it worked.
After that, do not forget to give the user permissions on the database