Hi All,
I used the following code to add a login to the SQL Server:
which did grant the login access to the DBMS, however, I'm looking for a piece of code that will grant access for the specified ID to a specific database, with specific permissions (such as db_datareader / read-only).
I have not been able to find the right piece of code to do this.
Can anyone help?
-Ovatvvon :-Q
I used the following code to add a login to the SQL Server:
Code:
CREATE LOGIN [{domain}\{user_id}] FROM WINDOWS WITH
DEFAULT_DATABASE = {db_name},
DEFAULT_LANGUAGE = us_english
I have not been able to find the right piece of code to do this.
Can anyone help?
-Ovatvvon :-Q