Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / How to allow the database access via stored procedures ONLY? / 3 сообщений из 3, страница 1 из 1
12.06.2002, 17:31:35
    #32032588
Dima
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
How to allow the database access via stored procedures ONLY?
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
12.06.2002, 17:50:02
    #32032589
Vytas
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
How to allow the database access via stored procedures ONLY?
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
12.06.2002, 18:35:51
    #32032594
klama
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
How to allow the database access via stored procedures ONLY?
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
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / How to allow the database access via stored procedures ONLY? / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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