I have an database projeto and a user USUARIO. What I should do to give USUARIO access to projeto?
I tried:
GRANT ALL ON projeto TO USUARIO
but I get the following error:
Msg 15151, Level 16, State 1, Line 1
Cannot find the object 'projeto', because it does not exist or you do not have permission.
I am using the sa account.
Could this be a solution?
“object_name is the name of an database object like TABLE, VIEW, STORED PROC and SEQUENCE”
Maybe you are trying to give permissions to database and
GRANTdoes not accept database name asobject_name. I never tried giving permissions on database so I’m not sure if that is the issue