代码改变世界

Debug MDX Procedure Based .NET in Visual Studio

2009-05-30 23:48  Yin.P  阅读(477)  评论(0编辑  收藏  举报

It's really a piece of cake to debug MDX procedure in Visual Studio. It will be done just in only a few steps. In Visual Studio 2010(the same to VS2005 and VS2008), you should attach the MDX procedure project to the Analysis Service process(msmdsrv.exe), and then the assemblies which are needed will be loaded automatically. The specific MDX procedure will also be loaded by Analysis Service. Before debugging the procedure, at least one break point should be set in the procedure. Run the MDX code contain the procedure to start the debug. The execution flow will jump into Visual Studio and stop at the break point that is set before. There is one important tip, that is the checkbox of 'Enable SQL Server debugging' should be checked. The checkbox is in the debug tab of project property panel(just as shown below).

 

 

Chinese Edition of this article