April 27, 2014 at 11:52 pm
Hi,
I would like to know if there is any option to Restrict DML statements in SSMS for a user where the same user should be able to perform these actions through application on particular database.
Thanks,
Krishna Dhara
April 28, 2014 at 12:34 am
SSMS is neither the appropriate nor the intended interface for such restrictions.
😎
April 28, 2014 at 7:13 am
To further add to Eirikur's comments, sql does not care which application is connected to it. You don't control permissions by where the connection was originated. You control permissions by user. You could possibly use a different sql login from the application. That could effectively achieve what you are after.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
April 28, 2014 at 8:48 am
I haven't used it, so I'm not sure that it would work but Application Roles might help.
April 29, 2014 at 6:14 am
You've just defined what stored procedures are used for. You give access to insert data through a stored procedure, but not through the table directly. That way you can control, very directly, who does what and how they do it to ensure your system works the way you think it should.
In addition, I do like using roles instead of individual logins as a way to manage security. Further, instead of individual logins, I use AD groups. That way, I map an AD group to a role (or roles), and then the individual users are added or removed from the AD group and automatically added or removed from security within SQL Server.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply