GRANT EXECUTE not working

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default GRANT EXECUTE not working

    How do I correct this error??

    GRANT EXECUTE ON procMyProc TO NEVUS\IUSR_NEVUS

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

    This is the IIS web account for my machine, and the database user name
    and login name are the same. I can't change the login name, can I?

    I'm trying to script privileges to a bunch of user stored procs to the
    web user account. Maybe there's another way?

    Ben
    ben h Guest

  2. Similar Questions and Discussions

    1. The real Andrew Grant
      My name is Andrew Grant. I am a certified Macromedia Instructor and a Certified Advanced Coldfusion Developer. I have published many tech articles...
    2. Grant Command Syntax
      I've got a MySQL database which contains users and their passwords. I have a PHP script that allows me to add new users and passwords to the...
    3. Why does Grant command fail?
      I issued the mysql command Grant all on *.* to myid@localhost identified as "mypw"; and recieved the error message ERROR 1045: Access denied...
    4. Grant access
      Excellent question. I am having the same problem. My computers are not on a "domain", just a workgroup. They are both dhcp clients being...
    5. How can i grant priviledge to user joaquin???
      Hi I just created a user in Oracle9i with: Creates user -- Create user joaquin identified by joaquin; Grants access database -- Grant connect...
  3. #2

    Default Re: GRANT EXECUTE not working

    \ is not a valid character in an identifier, so you need to surround the
    username with [].

    GRANT EXEC ON procMyProc TO [NEVUS\IUSR_NEVUS]

    --
    [url]http://www.aspfaq.com/[/url]
    (Reverse address to reply.)





    "ben h" <none@noone.com.invalid> wrote in message
    news:%23eH6B0XaEHA.384@TK2MSFTNGP10.phx.gbl...
    > How do I correct this error??
    >
    > GRANT EXECUTE ON procMyProc TO NEVUS\IUSR_NEVUS
    >
    > Server: Msg 170, Level 15, State 1, Line 1
    > Line 1: Incorrect syntax near '\'.
    >
    > This is the IIS web account for my machine, and the database user name and
    > login name are the same. I can't change the login name, can I?
    >
    > I'm trying to script privileges to a bunch of user stored procs to the web
    > user account. Maybe there's another way?
    >
    > Ben

    Aaron [SQL Server MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139