Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sql Server 2000 Grant Permissions to user with numeric ID problem

Status
Not open for further replies.

ProntoMatt

Programmer
Dec 3, 2008
2
US
The statement below works just fine:
grant all on NEW_STORED_PROC to 'a99bcde';

A similar statement of
grant all on NEW_STORED_PROC to '038151';
fails with the following message:

Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '038151'.

I have verified in the sysusers table that the numeric user exists:
select * from sysusers where name = '038151'
returns 1 row

Any tips on how to give 038151 access to run the NEW_STORED_PROC ?
Thanks!
 
try replacing your single quotes with square brackets. I'm not positive, but I think it may work.

Code:
grant all on NEW_STORED_PROC to [!][[/!]038151[!]][/!];


-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top