Hi @shaikh shoaib ,
Create or change the read and write permissions on the account.
1.Create a new user
You could add the user to the Database Level Role db_datareader.
Members of the db_datareader fixed database role can run a SELECT statement against any table or view in the database.
Please to this blog about how to create a read-only user: https://hub.acctivate.com/articles/create-a-read-only-sql-server-user-account
Please to this blog about db_datareader: https://learn.microsoft.com/en-us/previous-versions/sql/sql-server-2005/ms189121(v=sql.90)?redirectedfrom=MSDN
2.Change properties
Security->Logins->UserName->Properties
Follow the same steps like before.
Note: The important steps are selecting the database for mapping and granting permissions.
Then use this account to log in.
Lastly, you can see that the account can only read and not write.
> but will not be able to access/view stored procedures/views etc.
Login with your sa account, select YourDatabase->Views->System Views-> Properties and follow the steps:
Then set the permission.
Finally, use your account(such as my [Oh]) to login in.
Best regards,
Seeya
If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.