powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / How to allow the database access via stored procedures ONLY?
3 сообщений из 3, страница 1 из 1
How to allow the database access via stored procedures ONLY?
    #32032588
Dima
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Hi all!

I'm going to secure the database access now. Is it possible to allow any data manipulation such as insert, delete, update, select etc. from stored procedures only? It means no direct select's etc.

Thx in advance.
...
Рейтинг: 0 / 0
How to allow the database access via stored procedures ONLY?
    #32032589
Vytas
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Users will not be able to select\update\delete tables directly until they have been assigned that rights.
<BR>Additionaly you can set deny select\update\delete table.
<BR>
<BR>Set to users right to execute stored procedures only.
...
Рейтинг: 0 / 0
How to allow the database access via stored procedures ONLY?
    #32032594
klama
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Depending on how you'd like to handle it, you could create a role and grant execute to this role, instead of doing it for each and every user.

select 'GRANT EXECUTE ON ' + name + ' TO XXXXX'
from yourdb..sysobjects
where type = 'P'

and execute it's output to grant the role 'XXXXX' execute on all procedures in 'yourdb' database.

This way you actually make sure that they do NOT have any permissions other than EXECUTE, unless otherwise granted exclusively, which could be tracked and eliminated.

And do not forget to get rid of the GUEST user.
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / How to allow the database access via stored procedures ONLY?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]