You receive error 16805 when you run the sp_makewebtask system stored procedure (834116)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

SYMPTOMS

When you connect to Microsoft SQL Server 2000 by using domain user account credentials and run the sp_makewebtask system stored procedure, you may receive the following error message:
Server: Msg 16805, Level 11, State 1, Procedure sp_makewebtask, Line 125 SQL Web Assistant: Could not execute the SQL statement.
Note This problem may occur when the SQL Server service is running under the security context of a local Windows NT user account.

CAUSE

This problem occurs because the sp_makewebtask system stored procedure tries to determine what permissions the domain user account has. Because the local Windows NT user account is not permitted to obtain domain permissions, the procedure is not successful, and you receive the error message.

WORKAROUND

To work around this problem, use one of the following methods:
  • Method 1: Run the SQL Server service under the security context of a domain account that has administrative permissions on the computer that is running SQL Server 2000.

    Note Microsoft does not recommend that you run the SQL Server service under the security context of a local administrator account.
  • Method 2: Connect to SQL Server 2000 by using a SQL Server login account that is a member of the sysadmin fixed server role, and then run the sp_makewebtask system stored procedure.

    Note Microsoft does not recommend that you connect to SQL Server 2000 by using a SQL Server login account that is a member of the sysadmin fixed server role to work around this problem.

MORE INFORMATION

Steps to Reproduce the Problem

To reproduce this problem, follow these steps:
  1. Log on to a computer that is running SQL Server 2000.
  2. Create a local Windows NT user account that is named User1, and then add the user to the Windows administrator group on the computer.
  3. Run the SQL Server service under the security context of User1.
  4. Create a domain user account that is named <domain>\<domainUser>.
  5. Add the domain user account to the sysadmin fixed server role.
  6. Log on to the computer that is running SQL Server 2000 by using the domain user account credentials.
  7. Start SQL Query Analyzer, and then connect to SQL Server 2000 by using Microsoft Windows authentication.
  8. Run the following Transact-SQL statement in SQL Query Analyzer:
    USE pubs
    GO
    EXECUTE sp_makewebtask @outputfile = 'C:\MULTIPLE.HTM',
    @query = 'SELECT title, price FROM titles SELECT au_lname, au_fname 
    FROM authors SELECT pub_id, pub_name FROM publishers SELECT au_lname, 
    au_fname FROM authors', 
    @dbname = 'pubs', @rowcnt = 5, @whentype = 9
    GO
Note The sp_makewebtask system stored procedure may not be successful, and you may receive the error message that is mentioned in the "Symptoms" section.

Modification Type:MajorLast Reviewed:1/8/2004
Keywords:kberrmsg kbSysAdmin kbStoredProc kbService kbDatabase kbAuthentication kbprb KB834116 kbAudDeveloper