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.

FIX: BizTalk Server 2006, BizTalk Server 2006 R2 or BizTalk Server 2009 experiences low performance when you execute an SQL query that refers to the "ActivityID" field in the bam_ActivityName_CompletedRelationships table


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You have a computer that is running Microsoft BizTalk Server 2006, Microsoft BizTalk Server 2006 R2 or BizTalk Server 2009.
  • You execute an SQL query that refers to the ActivityID column of the bam _ActivityName_ CompletedRelationships table for some Business Activity Monitoring (BAM) data.

    Note The bam _ ActivityName _CompletedRelationships table is in the BAMPrimaryImport database.
In this scenario, the query execution time is very slow,

↑ Back to the top


Cause

This problem occurs because there is no index on the ActivityID column in the bam_ActivityName_CompletedRelationships table.

↑ Back to the top


Resolution

Cumulative update information

For BizTalk Server 2009, the hotfix that resolves this issue is included in Cumulative Update 1 for BizTalk Server 2009.�

For more information about how to obtain the cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base:�

2429050 Cumulative update package 1 for BizTalk Server 2009

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: - Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Installation information

  1. Extract the hotfix package. After you extract the hotfix package, you receive a batch of files that include the following:

    For BizTalk Server 2006
    • Setup.exe
    • RFH3380.exe
    • Readme.txt

    For BizTalk Server 2006 R2
    • Setup.exe
    • RFH3351_3352.exe
    • RFH3351_3352-SQL2K5 only.exe
    • Readme.txt
  2. Run Setup.exe to install the hotfix package. This ensures that a nonclustered index is created on the ActivityID column in the bam_ActivityName_CompletedRelationships table when you deploy new activities.
  3. To create indexes for all existing deployed activities, run the utility that is included with this hotfix package as per the following instructions. You can also refer to the Readme.txt file that is contained in this hotfix package for more information.
For BizTalk Server 2006
Usage RFH3380 <serverName><DatabaseName> or RFH3380

Note The default values for RFH3380 are serverName empty and DatabaseName as BAMPrimaryImport.


For BizTalk Server 2006 R2
Usage RFH3351_3352 <serverName><DatabaseName> or RFH3351_3352

Note The default values for RFH3380 are serverName empty and DatabaseName as BAMPrimaryImport.

When you run this utility, please be aware of the following points:
  1. The utility must be run on the Database server for the BizTalk Group.
  2. You must have Read, Write and Execute rights on the BAMPrimaryImport database to run the utility.
  3. This process updates the bam_ActivityName_AllInstances view for all the activities deployed on the BizTalkPrimaryImportDB and creates a nonclustered index on ActivityId on the bam_ActivityName_CompletedRelationships table. Be aware thatthis process might take some time if you have many records.
  4. This utility must be run only one time for a BAMPrimaryImport Database.
  5. If the upgrade of an activity stored procedure fails, the utility will display an exception on the console.
  6. You must run the utility that corresponds to your BizTalk Server version.
  7. You should run the utility RFH3351_3352-SQL2K5 only.exe only when the BAMPrimaryImport database for BizTalk Server 2006 R2 is hosted in SQL Server 2005.

Prerequisites

You must have BizTalk Server 2006 or BizTalk Server 2006 R2 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix. However, you must restart the BizTalk Host Instance service after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Microsoft BizTalk Server 2006
File nameFile versionFile sizeDateTimePlatform
Microsoft.biztalk.bam.management.dll3.5.1786.03,143,54427-Aug-200918:04x86

Microsoft BizTalk Server 2006 R2
File nameFile versionFile sizeDateTimePlatform
Microsoft.biztalk.bam.management.dll3.6.1545.23,344,25618-Aug-200915:38x86

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

To apply this hotfix, follow the instructions in the readme.txt file that is contained in this hotfix package.

↑ Back to the top


Keywords: kbbiztalk2006r2sp1fix, kbbiztalk2006presp1fix, kbbtsbam, kbexpertiseadvanced, kbautohotfix, kbqfe, kbfix, kbbiztalk2009presp1fix, KB973770

↑ Back to the top

Article Info
Article ID : 973770
Revision : 2
Created on : 12/8/2010
Published on : 12/8/2010
Exists online : False
Views : 650