Link to home
Start Free TrialLog in
Avatar of gdspeare
gdspeare

asked on

SUSER_SNAME

I am tyring to add a suser_sname() condition to a stored procedure but am having some issues.

I am trying to add a condition that if the user is not in a very small list (probably will only be 3) don't run the procedure.

Anyone have any ideas why this isn't working?
IF suser_Sname() IN (utmsa/gs2007) 
BEGIN

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of BrandonGalderisi
BrandonGalderisi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial