![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to a simple insert statement from a remote application against a sql server 2005 database. To fix the problem I was having, I had to grant the Login I was using the role of sysadmin. However I don't want this user to have that kind of control, what would be the best role to allow the user full access(including remoting) to only one particular database? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
The error message is simply that my user didn't have permission to execute the statement. I would like to be able to grant the user insert, update, delete, select on all tables in a particular database.(remotely or local, both situations are possible) How would I do this? |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
As it turns out the db_owner is a more likely canidate for the level of power I wish to give the user. So what I need to do is add to my database install script, after I add the user to the database, i need to grant Database Role Membership (db_owner) for the database ClientScan for the user CSAdmin exec sp_addlogin 'CSAdmin', 'pwd' USE ClientScan exec sp_adduser 'CSAdmin' exec sp_addrolemember db_owner, CSAdmin If there is anything wrong with my syntax please correct it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |