如何设置 sql profiler 来分析 SQL 2005 报告服务
我正在尝试分析 ASP.NET 应用程序使用的 SQL 报告服务。 在 SQL 探查器中,ASP.NET 运行的所有 SQL 都会显示出来。 看起来报告 SQL(来自 RDL)没有显示。 我是否缺少某些设置或过滤器?
I'm trying to profile SQL reporting services, used from ASP.NET application. In SQL profiler all the SQL run by ASP.NET shows up. It looks like the reporting SQL (from the RDL) doesn't show. Is there some setting or filter I'm missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
应用程序名称列通常 = Reporting Services(或类似的)。
您可能需要跟踪 SQL 批处理完成和 RPC 调用完成
我以前也被这个咬过...
Application name column = Reporting Services (or similar) usually.
You may need to trace SQL batch complete and RPC call complete
I've been bitten with this before...
当你找到那个大乱七八糟的球时,你可以搜索它。 我会搜索您知道只能由 SSRS 使用的 sp 或 sql 语句。 (如果不存在,则将某些内容强制放入其中以进行测试)。 查看所有列。 可能会有一个列突然出现在您面前,它是报告服务所特有的,您可以将其用作过滤器。
When you get that big ball of mess, you can search it. I would search for an sp or sql statement that you know could only be used by SSRS. (If this doesn't exist, then force something in there just for testing purposes). Look at all the columns. There may be a column that jumps out at you as unique to reporting services that you could use as a filter.
因此,我介绍的几种方法可以帮助您。
对于第三个,我的意思是执行以下操作:
-- 获取产品报告
从产品中选择产品 ID、产品名称 注释
行将与 SQL 一起出现在窗口中,这使得您可以轻松跟踪报告重新注意到其中一个正在引起问题,进一步走下去。
希望有帮助。
So there's a few ways I profile that could help you.
For the third one, what I mean is do this:
-- Get Products Report
select productid, productname from products
And the comment line will appear in the window along with the SQL, which makes it very easy to track to a report when you're noticing one of them is causing issues, further on down the track.
Hope that helps.