<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Tiho's blog</title><subtitle type="html">Read on your own responsibility</subtitle><id>http://blogs.msdn.com/tihot/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/tihot/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2005-02-10T19:12:00Z</updated><entry><title>The infamous BAM EventBus Service event ID 25</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2006/12/21/the-infamous-bam-eventbus-service-event-id-25.aspx" /><id>http://blogs.msdn.com/tihot/archive/2006/12/21/the-infamous-bam-eventbus-service-event-id-25.aspx</id><published>2006-12-21T22:19:00Z</published><updated>2006-12-21T22:19:00Z</updated><content type="html">&lt;P&gt;There are 8 tables in each BizTalk Message Box database which store the tracking data before it is imported by the BAM EventBus Service (a.k.a. TDDS or Tracking Data Decoding Service) into the DTA/HAT and the BAM Primary Import databases. The tables are named TrackingData_x_y where 0 ≤ x ≤ 1 and 0 ≤ y ≤ 3. It is absolutely critical that the sizes of these tables do not increase over time.&amp;nbsp;If the sizes are increasing than either TDDS is not able to catch up with the load or it is not working properly. There is a performance counter that can be used to monitor the size of the tracking data – BizTalk:Messsage Box:General Counters\Tracking Data Size.&lt;/P&gt;
&lt;P&gt;The first step to troubleshoot issues with the tracking data is to examine the Windows Event Log on the BizTalk Tracking Host machine for errors from the BAM EventBus Service. Error information along with the serialized original tracking data might be available in the TDDS_FailedTrackingData tables in the DTA/HAT and the BAM Primary Import databases. Another place where error information might be available is the TDDS_Heartbeats table in the BizTalk Management database.&lt;/P&gt;
&lt;P&gt;In this post I will focus on one very common cause which manifests as an error from the BAM EventBus Service in the Windows Event Log with event ID 25. The error should look like this:&lt;BR&gt;&lt;PRE&gt;Event Type: Error
Event Source: BAM EventBus Service
Event Category: None
Event ID: 25
Date: 12/20/2006
Time: 10:38:27 AM
User: N/A
Computer: TRACKINGHOST
Description:
Either another TDDS is processing the same data or there is an orphaned 
session in SQL server holding TDDS lock.Timeout expired. The timeout 
period elapsed prior to completion of the operation or the server is not 
responding. SQLServer: DBSERVER, Database: BAMPrimaryImport.
&lt;/PRE&gt;
&lt;P&gt;This error will usually show up every 5 minutes or so. Below are the steps to resolve it.&lt;/P&gt;
&lt;P&gt;First, make sure that you are not hitting any of the issues described in &lt;A class="" title="TDDS restart fails" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/troubleshooting/htm/ebiz_trouble_bam_gukh.asp" mce_href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/troubleshooting/htm/ebiz_trouble_bam_gukh.asp"&gt;this article&lt;/A&gt;. If this is the case, then killing the orphaned sessions or restarting the SQL Server machine will resolve the issue. You can use the information in &lt;A class="" title="Orphaned Sessions" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/trblsql/tr_rptconsetup_5gmr.asp" mce_href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/trblsql/tr_rptconsetup_5gmr.asp"&gt;this article&lt;/A&gt; to identify orphaned sessions.&lt;/P&gt;
&lt;P&gt;If the issue is still there, then you most certainly have permissions problems. The account under which TDDS (and the BizTalk Tracking Host) is running must have execute permissions&amp;nbsp;for the following stored procedures in the BizTalk Message Box database: TDDS_RedisterTDDSAccess and TDDS_GetNumTrackingPartitions. The same account must also have execute permissions for the TDDS_Lock stored procedure in the DTA/HAT and the BAM Primary Import databases.&lt;/P&gt;
&lt;P&gt;The permissions are set correctly when BizTalk Server is first&amp;nbsp;installed but might be altered later directly&amp;nbsp;or indirectly by manually setting explicit deny permissions for the specific account or any group that it is a member of.&lt;/P&gt;
&lt;P&gt;The best way to check that permissions are indeed the problem is to open Task Manager on the Tracking Host machine and on the Processes tab check the account under which the BTSNTSvc.exe process is running. This is the Tracking Host account. Now start SQL Query Analyzer or SQL Management Studio (or any of the command line counterparts) with the same user credentials as BTSNTSvc.exe. You can use the “runas” command or right-click on a shortcut and choose “Run as…”. I suggest that you do this test&amp;nbsp;on the Tracking Host machine to rule out any network connectivity issues. &lt;/P&gt;
&lt;P&gt;After you have connected to the correct SQL database execute the following:&lt;/P&gt;
&lt;P&gt;In all BizTalk Message Box databases:&lt;/P&gt;&lt;PRE&gt;DECLARE @RC int
DECLARE @retVal int
EXEC @RC = [BizTalkMsgBoxDb].[dbo].[TDDS_RegisterTDDSAccess] @retVal OUTPUT 
SELECT @RC
GO

DECLARE @RC int
DECLARE @nPartitions tinyint
EXEC @RC = [BizTalkMsgBoxDb].[dbo].[TDDS_GetNumTrackingPartitions] @nPartitions OUTPUT 
SELECT @RC
GO&lt;/PRE&gt;
&lt;P&gt;In the BizTalk DTA and BAM Primary Import databases:&lt;/P&gt;&lt;PRE&gt;DECLARE @RC int
DECLARE @resource nvarchar(128)
DECLARE @milisecTimeout int
DECLARE @retVal int
SELECT @resource = N'Foo'
SELECT @milisecTimeout = 5000
EXEC @RC = [BAMPrimaryImport].[dbo].[TDDS_Lock] @resource, @milisecTimeout, @retVal OUTPUT 
SELECT @retVal
SELECT @RC
GO&lt;/PRE&gt;
&lt;P&gt;The results of these queries should be 0 and there should not be any errors. If you get “EXECUTE permission denied” errors then grant the corresponding execute permissions until you can execute the queries without any errors. At this point TDDS should start moving the tracking data from the Message Box databases to the DTA and the BAM databases.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1342176" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author></entry><entry><title>BizTalk Server 2004 Service Pack 2 has been released</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2006/10/30/biztalk-server-2004-service-pack-2-has-been-released.aspx" /><id>http://blogs.msdn.com/tihot/archive/2006/10/30/biztalk-server-2004-service-pack-2-has-been-released.aspx</id><published>2006-10-30T23:53:00Z</published><updated>2006-10-30T23:53:00Z</updated><content type="html">&lt;P&gt;Download&amp;nbsp;it from here: &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyId=D20B4510-E5A6-4D7B-87A1-4BD52BDD57B8&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyId=D20B4510-E5A6-4D7B-87A1-4BD52BDD57B8&amp;amp;displaylang=en&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=904409" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author></entry><entry><title>Image File Execution Options or how to start the debugger automatically</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2006/09/09/747575.aspx" /><id>http://blogs.msdn.com/tihot/archive/2006/09/09/747575.aspx</id><published>2006-09-09T10:36:00Z</published><updated>2006-09-09T10:36:00Z</updated><content type="html">&lt;P&gt;I'm putting this here so that I don't forget where to look for it later when I need it&amp;nbsp;as it has already happened in the past. Mike has a &lt;A href="http://blogs.msdn.com/jmstall/archive/2006/02/16/ifeo_managed_debugging.aspx"&gt;great post&lt;/A&gt; which is full of links to other great posts on the topic.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=747575" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="Programming" scheme="http://blogs.msdn.com/tihot/archive/tags/Programming/default.aspx" /></entry><entry><title>How do I get data into BAM Archive?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2006/09/01/711428.aspx" /><id>http://blogs.msdn.com/tihot/archive/2006/09/01/711428.aspx</id><published>2006-09-02T03:36:00Z</published><updated>2006-09-02T03:36:00Z</updated><content type="html">&lt;P&gt;&lt;EM&gt;"... It seems that the DTS/SSIS package BAM_DM_&amp;lt;activity name&amp;gt; should be moving it into the Instance and Relationship tables in the BAM Archive database but it doesn’t."&lt;BR&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The BAM Data Maintenance DTS/SSIS package will only move data that is out of the activity online window. This is a setting on the BAM activities which can be changed with bm.exe. More specifically, look at the get-activitywindow, set-activitywindow commands of bm.exe.&lt;/P&gt;
&lt;P&gt;Also if you have an OLAP aggregation defined in you observation model (BAM definition), then the Data Maintenance DTS/SSIS package will not move out of the BAM Primary Import database any data that is not yet processed in the OLAP cube by running the BAM Cube Update DTS/SSIS package - BAM_AN_&amp;lt;cube name&amp;gt;. So you need to run the Cube Update DTS/SSIS package before running the Data Maintenance DTS/SSIS package.&lt;/P&gt;
&lt;P&gt;More information on this &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/BTS06CoreDocs/html/4a014a59-0578-41fa-9441-8b582f54bbe8.asp"&gt;here&lt;/A&gt;. &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=711428" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="BAM" scheme="http://blogs.msdn.com/tihot/archive/tags/BAM/default.aspx" /></entry><entry><title>Developing with BAM and BAM FAQ are now available</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2006/08/22/713350.aspx" /><id>http://blogs.msdn.com/tihot/archive/2006/08/22/713350.aspx</id><published>2006-08-23T02:47:00Z</published><updated>2006-08-23T02:47:00Z</updated><content type="html">&lt;P&gt;I meant to post this earier so you might have already seen it but here it is.&lt;/P&gt;
&lt;P&gt;A short &lt;A href="http://download.microsoft.com/download/3/7/6/376a6f6c-8c97-4ab5-9d5a-416c76793fbb/BAMFrequentlyAskedQuestions.doc"&gt;FAQ&lt;/A&gt; covering common questions and a &lt;A href="http://download.microsoft.com/download/b/1/d/b1d9ddf9-88c6-4d4e-abea-4787fdc85bec/DevelopingWithBAM101.exe"&gt;document&lt;/A&gt; on using the BAM APIs.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=713350" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="BAM" scheme="http://blogs.msdn.com/tihot/archive/tags/BAM/default.aspx" /></entry><entry><title>How is BAM Archive database used?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2006/08/22/711422.aspx" /><id>http://blogs.msdn.com/tihot/archive/2006/08/22/711422.aspx</id><published>2006-08-23T02:24:00Z</published><updated>2006-08-23T02:24:00Z</updated><content type="html">&lt;P&gt;I get different flavors of this question a lot so I’ll put some Q&amp;amp;A here.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Q.&lt;/STRONG&gt; Is there a way to view the data stored in the BAM Archive database in the BAM Portal?&lt;BR&gt;&lt;STRONG&gt;A.&lt;/STRONG&gt; The short answer is NO.&lt;BR&gt;The BAM Archive database is the final destination for the BAM data. Once the online data is archived, it is no longer useful for BAM with only one exception that I know of – the upgrade of the BAM OLAP cubes from SQL 2000 to SQL 2005. Neither the BAM Portal nor any other BAM component will use data from the Archiving database. Also, querying the data there is not a good idea because (1) you don’t have the computed columns and the&amp;nbsp;real-time aggregations and (2) you don’t have indexes. The expectation is that all “queriable” data will be in the activity online window and thus in the BAM Primary Import database.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Q.&lt;/STRONG&gt; However, can I use the data stored in the BAM Archive database from my own application?&lt;BR&gt;&lt;STRONG&gt;A.&lt;/STRONG&gt; By all means. &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/BTS06CoreDocs/html/f9ef7480-2e37-4477-92c8-b5686ae9b54b.asp"&gt;This&lt;/A&gt;&amp;nbsp;is&amp;nbsp;an article which shows how to create a partitioned view for all the data for a single BAM activity in the BAM Archive database.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=711422" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="BAM" scheme="http://blogs.msdn.com/tihot/archive/tags/BAM/default.aspx" /></entry><entry><title>bts_CleanupMsgbox doesn’t work well with TDDS</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2006/08/21/711340.aspx" /><id>http://blogs.msdn.com/tihot/archive/2006/08/21/711340.aspx</id><published>2006-08-22T00:31:00Z</published><updated>2006-08-22T00:31:00Z</updated><content type="html">&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;DIV style="BORDER-RIGHT: #000000 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #000000 1px solid; PADDING-LEFT: 4px; PADDING-BOTTOM: 1px; BORDER-LEFT: #000000 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #000000 1px solid; BACKGROUND-COLOR: #d3d3d3"&gt;&lt;STRONG&gt;DISCLAIMER --&lt;/STRONG&gt;&lt;BR&gt;The bts_CleanupMsgbox stored procedure &lt;STRONG&gt;IS NOT SUPPORTED. IT IS NOT TO BE USED ON PRODUCTION SYSTEMS!!!&lt;/STRONG&gt; The steps to workaround the bts_CleanupMsgbox issue outlined below &lt;STRONG&gt;ARE NOT TO BE USED ON PRODUCTION SYSTEMS!!!&lt;/STRONG&gt; You can use bts_CleanupMsgbox and the steps in this posting in a test environment at your own risk. This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you don’t know about bts_CleanupMsgbox or you don’t use it then you don’t need to worry about anything in the rest of this post.&lt;/P&gt;
&lt;P&gt;If you want to learn how to use bts_CleanupMsgbox in &lt;STRONG&gt;test environment&lt;/STRONG&gt; go &lt;A href="http://blogs.msdn.com/biztalk_core_engine/archive/2005/03/09/390996.aspx"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you use the bts_CleanupMsgbox stored procedure on you BizTalk Message Box databases then be advised that it doesn’t work well with TDDS. You might loose significant amount of BAM and/or HAT data. bts_CleanupMsgbox will be fixed soon but until then here’s what you can do to avoid issues. &lt;/P&gt;
&lt;P&gt;Procedure to use bts_CleanupMsgbox safely with regard to TDDS:&lt;BR&gt;1.&amp;nbsp;&lt;STRONG&gt;Read the DISCLAIMER at the beginning of this post. Never use these steps on a production system.&lt;BR&gt;&lt;/STRONG&gt;2.&amp;nbsp;Stop all tracking hosts (BizTalk processes hosting TDDS).&lt;BR&gt;3.&amp;nbsp;Run bts_CleanupMsgbox.&lt;BR&gt;4.&amp;nbsp;Truncate the TDDS_StreamStatus tables in the BAMPrimaryImport database and the BizTalkDTADb by executing the following statement:&lt;BR&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;truncate table [TDDS_StreamStatus]&lt;BR&gt;&lt;/FONT&gt;5.&amp;nbsp;Restart all tracking hosts.&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#808080&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=711340" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="BAM" scheme="http://blogs.msdn.com/tihot/archive/tags/BAM/default.aspx" /></entry><entry><title>BAM Web Services and SQL Server mixed mode authentication</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2006/06/13/630313.aspx" /><id>http://blogs.msdn.com/tihot/archive/2006/06/13/630313.aspx</id><published>2006-06-14T04:56:00Z</published><updated>2006-06-14T04:56:00Z</updated><content type="html">&lt;P&gt;This is an issue I see every once in while so let's see what causes it and how to diagnose and fix it.&lt;/P&gt;
&lt;P&gt;You have created and deployed a BAM definition with some BAM views in it but when you hit the BAM Portal with IE all you see in the "My Views" pane on the left is an error message "Views or Activites may be missing because one or more database(s) could not be contacted." followed by "No view to display" message. Now what?&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;DIV style="BORDER-RIGHT: #000000 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #000000 1px solid; PADDING-LEFT: 4px; PADDING-BOTTOM: 1px; BORDER-LEFT: #000000 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #000000 1px solid"&gt;Your first step to troubleshooting such issues is the Windows Event Log on the machine hosting the IIS server running the BAM Portal and the BAM web services. The BAM event log entries will be in the Application event log. You can filter on event source equal to "BAM Portal" or "BAM Web Service". I will usually look at the last few errors from "BAM Web Service".&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you open the Windows Event Viewer and you see one error from "BAM Web Service" with event ID 12033. Double-click on it and the description says:&lt;/P&gt;
&lt;P&gt;Referenced database 'BAMPrimaryImport' on server 'SERVERNAME' is not accessible. The error is:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;BR&gt;at Microsoft.BizTalk.Bam.WebServices.AsyncResult.End(AsyncResult asyncResult)&lt;BR&gt;at Microsoft.BizTalk.Bam.WebServices.Management.GetViewSummaryAsyncResult.End(IAsyncResult result)&lt;BR&gt;at Microsoft.BizTalk.Bam.WebServices.Management.BamManagementService.EndGetViewSummaryForDatabase(IAsyncResult result)&lt;BR&gt;at Microsoft.BizTalk.Bam.WebServices.Management.BamManagementService.GetViewSummaryForCurrentUser().&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Now what?&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;DIV style="BORDER-RIGHT: #000000 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #000000 1px solid; PADDING-LEFT: 4px; PADDING-BOTTOM: 1px; BORDER-LEFT: #000000 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #000000 1px solid"&gt;The second step to troubleshooting BAM Web Services issues is to... enable tracing. To turn on tracing go to the "Program Files\Microsoft BizTalk Server 2006\BAMPortal\BAMManagementService" directory (or "...\BAMQueryService") and open the web.config file with notepad. Uncomment the &amp;lt;system.diagnostics&amp;gt; element towards the end of the file. By default the traces will be saved in "C:\temp\BamManagementServiceTrace.log" or "C:\temp\BamQueryServiceTrace.log". Make sure that the IIS worker process user account (usually Network Service or ASPNET) and the BAM web service user have write permissions for the trace log file directory (C:\temp by default).&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Turn on tracing for the BAM Management Web Service and refresh the BAM Portal home page in IE. Now open the trace file "C:\temp\BamManagementServiceTrace.log" and search for the string "Error" from the top of the file to find the first error. In this case the first error is:&lt;/P&gt;
&lt;P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;lt;BizTalk2006&amp;gt; 06/13/2006 17:00:36 6 Microsoft.BizTalk.Bam.WebServices.TraceHelper ThrowHelperSoapException Error 11007 Cannot determine the SID for the user.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Bingo! This is the root cause of the problem. &lt;/P&gt;
&lt;P&gt;Now some history behind this problem. The BAM Web Services authenticate all users using Windows authentication and authorize them based on their Windows identity. But there is a special case - DBO. DBO is a special account which has permissions to all BAM views. So the BAM Web Services will try to find the Windows identity for the DBO user for the BAM Primary Import database and they will fail if this is a SQL account. &lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;DIV style="BORDER-RIGHT: #000000 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #000000 1px solid; PADDING-LEFT: 4px; PADDING-BOTTOM: 1px; BORDER-LEFT: #000000 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #000000 1px solid"&gt;BAM does not support anything other than Windows authentication for SQL Server. If everything else seems to work, there is no guarantee that it actually does and it will continue to work in the future. True, the error is not intuitive but it is correct.&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How to resolve the problem now that we have identified it? It is really easy indeed. Just change the DBO accounts for all BAM databases to Windows accounts. You can do this using the sp_changedbowner system stored procedure.&lt;/P&gt;
&lt;P&gt;To set DBO to the "domain\user" account run:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;use BAMPrimaryImport&lt;BR&gt;go&lt;BR&gt;sp_changedbowner 'domain\user'&lt;BR&gt;go&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Navigate to the BAM Portal and verify that you see all BAM views and no errors in the left pane on the home page.&lt;/P&gt;
&lt;P&gt;There is a pretty nice &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyId=B273269C-97E0-411D-8849-5A8070698E4A&amp;amp;displaylang=en"&gt;BizTalk Installation Guide&lt;/A&gt;, which you can use the next time you setup BizTalk Server to avoid such issues.&lt;BR&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=630313" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="BAM" scheme="http://blogs.msdn.com/tihot/archive/tags/BAM/default.aspx" /></entry><entry><title>Check out the new BizTalk Server Developer Center and TechCenter</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2006/05/02/588572.aspx" /><id>http://blogs.msdn.com/tihot/archive/2006/05/02/588572.aspx</id><published>2006-05-02T22:00:00Z</published><updated>2006-05-02T22:00:00Z</updated><content type="html">&lt;P&gt;You can find some orchestrations code samples and FAQ at the &lt;A href="http://msdn.microsoft.com/biztalk/default.aspx"&gt;BizTalk Developer Center&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;And&amp;nbsp;the cool&amp;nbsp;virtual lab at the &lt;A href="http://www.microsoft.com/technet/prodtechnol/biztalk/default.mspx"&gt;BizTalk TechCenter&lt;/A&gt;. Learn what's new in BAM in BizTalk Server 2006.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=588572" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="BAM" scheme="http://blogs.msdn.com/tihot/archive/tags/BAM/default.aspx" /></entry><entry><title>Drop all indexes from a SQL table</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2006/01/16/513548.aspx" /><id>http://blogs.msdn.com/tihot/archive/2006/01/16/513548.aspx</id><published>2006-01-17T02:16:00Z</published><updated>2006-01-17T02:16:00Z</updated><content type="html">&lt;P&gt;After spending some time to find out that there is no easy way to drop all indexes from a SQL table I came up with this script. &lt;/P&gt;&lt;PRE&gt;&lt;P&gt;DECLARE @indexName NVARCHAR(128)&lt;BR&gt;DECLARE @dropIndexSql NVARCHAR(4000)&lt;/P&gt;
&lt;P&gt;DECLARE tableIndexes CURSOR FOR&lt;BR&gt;SELECT name FROM sysindexes&lt;BR&gt;WHERE id = OBJECT_ID(N'tableName') AND &lt;BR&gt;&amp;nbsp; indid &amp;gt; 0 AND indid &amp;lt; 255 AND&lt;BR&gt;&amp;nbsp; INDEXPROPERTY(id, name, 'IsStatistics') = 0&lt;BR&gt;ORDER BY indid DESC&lt;/P&gt;
&lt;P&gt;OPEN tableIndexes&lt;BR&gt;FETCH NEXT FROM tableIndexes INTO @indexName&lt;BR&gt;WHILE @@fetch_status = 0&lt;BR&gt;BEGIN&lt;BR&gt;&amp;nbsp; SET @dropIndexSql = N'DROP INDEX tableName.' + @indexName&lt;BR&gt;&amp;nbsp; EXEC sp_executesql @dropIndexSql&lt;/P&gt;&lt;P&gt;&amp;nbsp; FETCH NEXT FROM tableIndexes INTO @indexName&lt;BR&gt;END&lt;/P&gt;
&lt;P&gt;CLOSE tableIndexes&lt;BR&gt;DEALLOCATE tableIndexes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/PRE&gt;
&lt;P&gt;Use it at your own discretion. It should work fine on both SQL Server 2000 and SQL Server 2005.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update on&amp;nbsp;September 1st, 2006:&lt;/P&gt;
&lt;P&gt;Thanks to Anthony Jones who pointed out that the script should drop the indexes in decscending order of indid.&amp;nbsp;If the table has a clustered index it will be indid 1 which if dropped first will cause all other indexes to be rebuilt only to be subsequently dropped. I updated the script. Enjoy!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=513548" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="Programming" scheme="http://blogs.msdn.com/tihot/archive/tags/Programming/default.aspx" /></entry><entry><title>BizTalk Server Beta1 is alive</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2005/08/03/447482.aspx" /><id>http://blogs.msdn.com/tihot/archive/2005/08/03/447482.aspx</id><published>2005-08-04T05:11:00Z</published><updated>2005-08-04T05:11:00Z</updated><content type="html">&lt;P&gt;As some of you already know Microsoft BizTalk Server 2006 has been available for some time now. Visit &lt;A href="http://www.microsoft.com/biztalk/evaluation/bts2006beta.mspx"&gt;http://www.microsoft.com/biztalk/evaluation/bts2006beta.mspx&lt;/A&gt;&amp;nbsp;for overview of the changes and instructions on how to get the beta.&lt;/P&gt;
&lt;P&gt;And don't forget to post all you questions and suggestions to the BizTalk Server Beta newsgroups (microsoft.beta.biztalk). This is very valuable feedback for us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=447482" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="BAM" scheme="http://blogs.msdn.com/tihot/archive/tags/BAM/default.aspx" /></entry><entry><title>More on BAM and BizTalk Server 2006</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2005/06/15/429625.aspx" /><id>http://blogs.msdn.com/tihot/archive/2005/06/15/429625.aspx</id><published>2005-06-16T07:35:00Z</published><updated>2005-06-16T07:35:00Z</updated><content type="html">&lt;P&gt;&lt;A href="https://blogs.msdn.com/gzunino/"&gt;Gilles&lt;/A&gt;&amp;nbsp;started a series on the new BAM Portal. &lt;A href="https://blogs.msdn.com/scottwoo/"&gt;Scott Woodgate&lt;/A&gt; is presenting&amp;nbsp;the new features and improvements in BizTalk Server 2006.&amp;nbsp;See what &lt;A href="https://blogs.msdn.com/scottwoo/archive/2005/05/24/421443.aspx"&gt;he has to say about BAM&lt;/A&gt;.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=429625" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="BAM" scheme="http://blogs.msdn.com/tihot/archive/tags/BAM/default.aspx" /></entry><entry><title>New BAM Management Utility (bm.exe) Commands</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2005/06/15/429619.aspx" /><id>http://blogs.msdn.com/tihot/archive/2005/06/15/429619.aspx</id><published>2005-06-16T06:52:00Z</published><updated>2005-06-16T06:52:00Z</updated><content type="html">&lt;P&gt;I’m really exited about all the great new features that we’ve put in BAM in BizTalk Server 2006 but I figured out that we’ve made some changes to the bm.exe commands and you need to get familiar with those changes before everything else. &lt;/P&gt;
&lt;P&gt;The information below is based on the Community Technical Preview (CTP) build of BizTalk Server 2006 that was distributed to TechEd&amp;nbsp;attendees at TechEd USA 2005 in Orlando. Some things might change before we ship the betas and the product. If you haven’t got a copy of the CTP build yet, don’t stop reading but get ready to try the new features soon when we ship Beta 1.&lt;/P&gt;
&lt;P&gt;To see the list of all commands just run bm.exe without and parameters. To get detailed help for a specific command run:&lt;/P&gt;bm.exe help -Command:&amp;lt;command&amp;gt;
&lt;P&gt;For example:&lt;/P&gt;bm.exe help -Command:deploy-all
&lt;P&gt;Note that there is no space between “-Command:” and “deploy-all”. And don’t worry – if you get any command wrong, you will see an error message along with the detailed help for that command and a few examples to help you fix your input.&lt;/P&gt;
&lt;P&gt;Here is a table with the bm.exe commands in BizTalk Server 2004 and their equivalents in BizTalk Server 2006.&lt;/P&gt;
&lt;TABLE id=table2 borderColor=#000000 cellSpacing=0 cellPadding=5 width="100%" border=1&gt;
&lt;TR&gt;
&lt;TD bgColor=#c0c0c0&gt;&lt;B&gt;BizTalk Server 2004&lt;/B&gt;&lt;/TD&gt;
&lt;TD bgColor=#c0c0c0&gt;&lt;B&gt;BizTalk Server 2006&lt;/B&gt;&lt;/TD&gt;
&lt;TD bgColor=#c0c0c0&gt;&lt;B&gt;Example&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;bm.exe dbsetup&lt;/TD&gt;
&lt;TD&gt;bm.exe setup-databases&lt;/TD&gt;
&lt;TD&gt;bm.exe setup-databases -ConfigFile:BamConfiguration.xml&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;bm.exe deploy&lt;/TD&gt;
&lt;TD&gt;bm.exe deploy-all&lt;/TD&gt;
&lt;TD&gt;bm.exe deploy-all -DefinitionFile:SalesManagerView.xls&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;bm.exe undeploy all&lt;/TD&gt;
&lt;TD&gt;bm.exe remove-all&lt;/TD&gt;
&lt;TD&gt;bm.exe remove-all -DefinitionFile:SalesManagerView.xls&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;bm.exe undeploy view&lt;/TD&gt;
&lt;TD&gt;bm.exe remove-view&lt;/TD&gt;
&lt;TD&gt;bm.exe remove-view -Name:SalesManagerView&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top&gt;bm.exe undeploy #1&lt;/TD&gt;
&lt;TD&gt;bm.exe remove-view
&lt;P&gt;bm.exe remove-activity&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;bm.exe remove-view -Name:SalesManagerView
&lt;P&gt;bm.exe remove-activity -Name:PurchaseOrder&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;bm.exe add&lt;/TD&gt;
&lt;TD&gt;bm.exe add-account&lt;/TD&gt;
&lt;TD&gt;bm.exe add-account -AccountName:domain\user -View:SalesManagerView&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;bm.exe remove&lt;/TD&gt;
&lt;TD&gt;bm.exe remove-account&lt;/TD&gt;
&lt;TD&gt;bm.exe remove-account -AccountName:domain\user -View:SalesManagerView&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;bm.exe list&lt;/TD&gt;
&lt;TD&gt;bm.exe get-accounts&lt;/TD&gt;
&lt;TD&gt;bm.exe get-accounts -View:SalesManagerView&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;bm.exe listchanges&lt;/TD&gt;
&lt;TD&gt;bm.exe get-changes&lt;/TD&gt;
&lt;TD&gt;bm.exe get-changes&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;
&lt;P&gt;Note that the BAM configuration file is now passed only to the setup-databases command. You can use the “-Server:” and “-Database:” parameters with almost all commands to specify BAM Primary Import database to be used for the command or you can specify the default BAM Primary Import sever and database in the bm.exe configuration file (bm.exe.config). If you don’t specify either of these, the defaults will be used – server locahost and database BAMPrimaryImport.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;bm.exe deploy-all -DefinitionFile:SalesManagerView.xls -Server:SalesServer -Database:BamSalesPI
&lt;P&gt;The new remove-all command will remove all activities and views defined in the BAM definition file. You can use the remove-view or remove-activity commands to remove a single view or activity.&lt;/P&gt;
&lt;P&gt;The new deploy-all command will create BAM live-data Excel workbook in the same directory in which the Excel file with the activity and view definitions resides.&lt;/P&gt;
&lt;P&gt;One thing I really like is that now you don’t need to export the BAM definition XML from the BAM Excel spreadsheet to use TPE. You can simply deploy your BAM Excel spreadsheet using bm.exe and TPE will get the activities definitions directly from the BAM Primary Import database. Then you can map the activities checkpoints to BizTalk orchestrations and start tracking your data.&lt;/P&gt;
&lt;P&gt;I hope this overview will get you started quickly. Next I will write about the new update commands as well as the alerting commands in bm.exe and the distributed BAM deployment. Sounds exciting?&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=429619" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="BAM" scheme="http://blogs.msdn.com/tihot/archive/tags/BAM/default.aspx" /></entry><entry><title>BizTalk Server 2006 Community Technology Preview on TechEd 2005</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2005/06/09/427452.aspx" /><id>http://blogs.msdn.com/tihot/archive/2005/06/09/427452.aspx</id><published>2005-06-10T02:49:00Z</published><updated>2005-06-10T02:49:00Z</updated><content type="html">&lt;P&gt;If you enjoy being a part of this year's Microsoft &lt;A href="http://www.microsoft.com/events/teched2005/default.mspx"&gt;TechEd&lt;/A&gt;&amp;nbsp;and if you work in the Information Worker space make sure you visit the &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/operations/htm/ebiz_ops_bam_admin_dxoa.asp?frame=true"&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Business &lt;/SPAN&gt;Activity Monitoring&lt;/A&gt; (BAM)&amp;nbsp;hands on lab for a&amp;nbsp;glimpse&amp;nbsp;on some of&amp;nbsp;the new features which will be part of Biz Talk Server 2006. Or even better - grab a CD with the CTP bits of Biz Talk Server 2006 and try it yourself. I will soon start posing about some new exiting features in BAM in Biz Talk Server 2006, so stay tuned!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=427452" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="BAM" scheme="http://blogs.msdn.com/tihot/archive/tags/BAM/default.aspx" /></entry><entry><title>An early look at Indigo </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/tihot/archive/2005/02/10/370802.aspx" /><id>http://blogs.msdn.com/tihot/archive/2005/02/10/370802.aspx</id><published>2005-02-11T06:12:00Z</published><updated>2005-02-11T06:12:00Z</updated><content type="html">&lt;p&gt;Here&amp;nbsp;is a good&amp;nbsp;&lt;a href="http://msdn.microsoft.com/longhorn/default.aspx?pull=/library/en-us/dnlong/html/introindigov1-0.asp"&gt;summary on Indigo&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=370802" width="1" height="1"&gt;</content><author><name>tihot</name><uri>http://blogs.msdn.com/members/tihot.aspx</uri></author><category term="Indigo" scheme="http://blogs.msdn.com/tihot/archive/tags/Indigo/default.aspx" /></entry></feed>