The module information is represented incorrectly when you profile managed code that is running in SQL Server 2005 by using performance tools in Visual Studio Team Edition for Software Developers

Article translations Article translations
Article ID: 912417 - View products that this article applies to.
Bug #: 408396 (SQLBUDT)
Expand all | Collapse all

SYMPTOMS

When you use performance tools in Microsoft Visual Studio Team Edition for Software Developers to profile managed code that is running in Microsoft SQL Server 2005, the information about SQL Server integration with the Microsoft .NET Framework common language runtime (CLR) module is represented incorrectly.

For example, if you try to profile managed code of a user-defined function in SQL Server 2005, you may notice that the name of the user-defined function is incorrectly represented as LRStubOrUnknownAddress. Additionally, if you develop your own tool by using the CLR Profiling API, the tool may not work correctly.

CAUSE

This problem occurs because the module load event is not generated with the CLR that is being hosted within the SQL Server process.

WORKAROUND

If you want to profile some part of your managed code, follow these steps:
  1. Use Visual Studio 2005 to create a separate project that is not a SQL Server project.
  2. Profile the separate project.
  3. Integrate the separate project into a SQL Server project. Note that the code that you profile cannot reference any SQL Server objects, such as the SqlContext object.

STATUS

This behavior is by design.

Properties

Article ID: 912417 - Last Review: February 15, 2006 - Revision: 1.2
APPLIES TO
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Express Edition
  • Microsoft SQL Server 2005 Workgroup Edition
  • Microsoft Visual Studio 2005 Team System Developer Edition
Keywords: 
kbprb kbsql2005clr kbexpertiseadvanced KB912417

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com