Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Declare @StoredProcName Varchar(20)
Declare @User varchar(20)
Set @StoredProcName = 'sb_spWeeklyReport'
set @User='webuser3'
SELECT syspermissions.grantee
From
syspermissions
Inner join
sysobjects ON sysobjects.id= syspermissions.id
INNER JOIN
syscolumns ON syscolumns.[ID] = sysobjects.[ID]
INNER JOIN
Sysusers ON Sysusers.uid = syspermissions.grantee
WHERE
OBJECTPROPERTY( sysobjects.[ID], 'IsProcedure') = 1
AND
sysobjects.name = @StoredProcName
AND
Sysusers.name=@User
if @@rowcount >0
Print 'Got permisons'
Else
print'not got persions'