sp_runwebtask

  • I get this error while try using sp_runwebtask:

    SQL Web Assistant: Web task not found. Verify the name of the task for possible errors.

    The syntax is this one:

    sp_runwebtask @procname = 'MYHTML2', @outputfile = 'C:\Web\test.html'

    The web task MYHTML2 exists and was created with sp_makewebtask, and works fine.

    Any ideas?

  • Just one idea right now... Was the web task created with sp_makewebtask using parameter @whentype=5?

  • no, I used the 8 (now, and recurrent).

    But I found a workaround creating a Job and putting inside the query with sp_makewebtask.

    The Job runs on a schedule, that is what I wanted to do with sp_runwebtask.

    Thanks for answering!

  • Yes, this will work. However, you can't use it anywhere where a simple user (not admin) should start it manually - sp_makewebtask requires sysadmin role. That's also the only situation where we use runwebtask: reports that can be started by a user from intranet.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply