Link to home
Start Free TrialLog in
Avatar of mcrmg
mcrmg

asked on

SQL user

Hi,

I need to setup a SQL user for frontend to connect.  What database role I should check?
It needs to be able to execute sp, insert new record, update/delete records.

I have checked db_datareader and db_datawriter and public

thx
Avatar of Aneesh
Aneesh
Flag of Canada image

that seems to be fine
Avatar of mcrmg
mcrmg

ASKER

I am getting this error

The EXECUTE permission was denied on the object 'st_aaa', database 'my_DB', schema 'dbo'.

thx
SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can run:

GRANT EXECUTE TO login ;
Avatar of mcrmg

ASKER

DO I have to do this to every sp? thx
If you do a login, you don't need to do to each proc.
Sorry my English...

If you do execute for all logins, you don't need to do for each proc, cause all procs already grant to public.
Avatar of mcrmg

ASKER

where can I set it?  thx
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mcrmg

ASKER

I see, there is no way to do this via GUI?  thx
yes...

You click with right button on database and choose properties. After this, you click on Permissions... click on user name on "user or roles box" and checkbox a grant to execute item.
database-properties.png
Avatar of mcrmg

ASKER

thanks again..