Microsoft distributes Microsoft SQL Server 2008 R2 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 fix release.
When you use Microsoft SQL Server Profiler to monitor an instance of SQL Server 2008 R2 Analysis Services, one or more of the following issues may occur.
Issue 1 When an Execute MDX Script trace event is triggered by a session other than Analysis Services, the ConnectionID and SPID attributes are incorrectly reported as 0. Therefore, the session that triggers the event is not logged.
Issue 2 The Execute MDX Script Current event that is triggered for every sub command of a script incorrectly contains the whole script in the TextData column. Therefore, the script part that is related to the event is not indicated.
Issue 3 Current trace information does not indicate which resources are consumed by a particular command or by a query.
Issue 4 In SQL Server Profiler, the Locks category that contains lock operation information logs only the following two events:
However, this information is insufficient when you try to troubleshoot the performance of SQL Server 2008 R2 Analysis Services.
This update introduces some new trace events to SQL Server Profiler to resolve these issues. For more information, see the "More Information" section.
Service pack information for SQL Server 2008 R2
To resolve this problem, obtain the latest service pack for SQL Server 2008 R2. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2527041 How to obtain the latest service pack for SQL Server 2008 R2
Note This fix for issue was first released in SQL Server 2008 R2 Service Pack 1.
The new Execute MDX Script Command event
The current SQL Server 2008 R2 Analysis Services supports the following events for the Execute MDX script operation:
Execute MDX Script Begin
Execute MDX Script Current
Execute MDX Script End
After you install this update, a new sub event MDX Script Command is available to track the Execute MDXScript operation. Below are the combinations of event and sub event:
Execute MDX Script Begin/MDX Script
Execute MDX Script Begin/MDX Script Command
Execute MDX Script End/MDX Script
Execute MDX Script End /MDX Script Command
These events indicate which part of the whole script is related to every sub command of the MDX script. The TextData column of the Execute MDX Script Begin event contains the whole MDX script. The TextData column of the Execute MDX Script Command Begin event contains only the MDX script of the current command.
New trace events to track resource usage
Current trace information does not indicate which resources are consumed by a particular command. After you install this update, the new Resource Usage event class is introduced to include information about CPU usage and I/O operations. This information is logged in a separate event or in additional columns on the Command End event or on the Query End event. The following information can be included in the TextData column of the event:
Trace events that track any locking activities
SQL Server 2008 R2 Analysis Services supports the following two events that track any locking activities:
After you install this update, the following new trace events are available to track any locking activities:
The Locks Acquired event indicates when the transaction has obtained a batch of locks for the processing of the transaction. The Locks Released event indicates when the transaction has released a batch of locks that the transaction requested. This event also indicates the duration that the locks are held. The Lock Waiting event indicates when a transaction tries and waits in a queue to obtain a lock in a batch. This information is in the TextData column of those events. This information includes the following additional related data:
The transaction ID
The LockList XML node
The WaitList XML node
The HoldList XML node
The Lock Acquired event and the Lock Released event contain the LockList information. The Lock Waiting event contains the LockList, WaitList, and HoldList information.
The LockList node contains the following information:
Object path of the object that is being requested
Note The object path is reported without a namespace. The Lock Released event additionally contains the Duration property. The Duration property indicates the duration that the lock is held in milliseconds.