Hi @Avyayah ,
Check the perimissions in one db:
Use dbname
go
SELECT prin.[name] [User], sec.state_desc + ' ' + sec.permission_name [Permission]
FROM [sys].[database_permissions] sec
JOIN [sys].[database_principals] prin
ON sec.[grantee_principal_id] = prin.[principal_id]
WHERE sec.class = 0
ORDER BY [User], [Permission];
--Grant Permission:
USE dbname;
GRANT select,update ON DATABASE::dbname TO UserName;
GO
More information: sql-server-create-user,grant-database-permissions-transact-sql
BR,
Mia
If the answer is helpful, please click "Accept Answer" and upvote it.
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.