Grant Method

SQLServer.Database.StoredProcedure Object

Description

Gives stored procedure privileges to a list of SQL Server users and groups.

Visual Basic

StoredProcedure.Grant (
[Privileges :=] tPrivileges,
[GranteeNames :=] midUserGroupList )

C++

HRESULT pStoredProcedure->Grant (
SQLOLE_PRIVILEGE_TYPE
tPrivileges,
SQLOLE_LPCSTR
midUserGroupList );

Elements

Element Type Description

tPrivileges SQLOLE_PRIVILEGE_TYPE Types of stored procedure privileges to grant
midUserGroupList MultiIdentifier Delimited list of one or more users and groups

Reference

GRANT