Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You receive a "caller must have BTS_ADMIN or DB_OWNER rights" error message when you try to change the Authentication trusted setting for a BizTalk host


View products that this article applies to.

Symptoms

When you change the Authentication trusted setting for a Microsoft BizTalk Server host, you receive an error message that is similar to the following in your BizTalk Server application log:
Event Type: Error
Event Source: BizTalk Server 2004
Event Category: BizTalk Server 2004
Event ID: 6912
Date: 1/30/2004
Time: 3:10:11 PM
User: N/A
Computer: BIZTALKSERVER
Description:
The following stored procedure call failed:
" { call [dbo].[bts_AddTrustedUser]( ?, ?, ?)}". SQL Server returned error string:
"Caller must have BTS_ADMIN or DB_OWNER rights to add user to BTS_TRUSTEDUSER role".
For more information, see Help and Support Center at http://support.microsoft.com.
When this problem occurs, the new Authentication trusted setting for the host does not take effect, although the BizTalk Server Administrator interface indicates that BizTalk Server has applied the change. The BizTalk Server Administrator interface does not indicate that an error has occurred.

↑ Back to the top


Cause

The bts_AddTrustedUser stored procedure and the bts_RemoveTrustedUser stored procedure in a BizTalk Server MessageBox database verify that the user account of the user who is making the change is a member of the BTS_ADMIN role or the db_owner role for the MessageBox database before BizTalk Server permits the change. However, the BTS_ADMIN role does not exist. Therefore, if the user account of the user who is trying to change the Authentication trusted setting for the host is not a member of the db_owner role, the user receives the error message that appears in the "Symptoms" section.

↑ Back to the top


Resolution

To resolve this problem, create a role in your MessageBox databases that is named BTS_ADMIN, and then add the BTS_ADMIN_USERS role as a member to the new BTS_ADMIN role. By default, BizTalk Server 2004 installs a single MessageBox database that is named BizTalkMsgBoxDb. However, you can create additional MessageBox databases to use for load balancing.

To run the SQL statements that create the BTS_ADMIN role and that add the BTS_ADMIN_USERS role as a member to the new BTS_ADMIN role for a specified MessageBox database, follow these steps:
1.Log on to the computer that is running Microsoft SQL Server and that hosts your BizTalk Server MessageBox databases.
2.Start SQL Query Analyzer. To do this, click Start, point to Programs, point to Microsoft SQL Server, and then click Query Analyzer.
3.When you receive a prompt to do so, connect to the instance of SQL Server that hosts your BizTalk Server MessageBox databases.
4.Click the MessageBox database that you want in the list of available databases.

Note By default, the BizTalk Server MessageBox database is named BizTalkMsgBoxDb.
5.Paste the following code in the Query window of SQL Query Analyzer.
if not exists (select * from sysusers where name = N'BTS_ADMIN' and issqlrole = 1)
exec sp_addrole 'BTS_ADMIN'
exec sp_addrolemember 'BTS_ADMIN', 'BTS_ADMIN_USERS'
6.Click Execute Query or press F5 to run the SQL statements.
7.Quit SQL Query Analyzer.

↑ Back to the top


More information

To change the Authentication trusted setting for a BizTalk Server host, follow these steps:
1.Click Start, point to Programs, point to Microsoft BizTalk Server 2004, and then click BizTalk Server Administration.
2.Double-click the Microsoft BizTalk Server 2004 group to expand it, and then double-click Hosts to view the available BizTalk Server hosts.
3.Right-click the BizTalk Server host that you want to change the Authentication trusted setting for, and then click Properties.
4.Click the General tab.
5.On the General tab, click to clear or click to select the Authentication trusted check box.

↑ Back to the top


Keywords: KB836022, kbbtsmessaging, kbprb

↑ Back to the top

Article Info
Article ID : 836022
Revision : 3
Created on : 9/22/2006
Published on : 9/22/2006
Exists online : False
Views : 552