reportingservices-2005

Passing parameter via url to sql server reporting service

二次信任 提交于 2019-11-26 14:35:20
I'm trying to pass a parameter via the url to SSRS and it appears not to work! I'm trying to pass a userId (string) via the url which will be passed to the database and used by the query. base url: http://blah/Reports/Pages/Report.aspx?ItemPath=MyReport tried this but it doesn't work: http://blah/Reports/Pages/Report.aspx?ItemPath=MyReport&UserId=fred Any ideas Mozy As well as what Shiraz said, try something like this: http://<server>/ReportServer/Pages/ReportViewer.aspx?%2f<path>%2f<ReportName>&rs:Command=Render&UserID='fred' Note the path would only work if you are in a single folder. When I

Fast query runs slow in SSRS

心已入冬 提交于 2019-11-26 09:07:17
问题 I have an SSRS report that calls out to a stored procedure. If I run the stored procedure directly from a query window, it will return in under 2 seconds. However, the same query run from an 2005 SSRS report takes up to 5 minutes to complete. This is not just happening on the first run, it happens every time. Additionally, I don\'t see this same problem in other environments. Any ideas on why the SSRS report would run so slow in this particular environment? 回答1: Thanks for the suggestions

SSRS 2005 Set SimplePageHeaders on the report instead of the server?

核能气质少年 提交于 2019-11-26 08:26:27
问题 I have one report that does not export to excel friendly from SSRS 2005. I know I can use <Render> <Extension Name=\"EXCEL\" Type=\"Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.ExcelRendering\"> <Configuration> <DeviceInfo> <SimplePageHeaders>True</SimplePageHeaders> </DeviceInfo> </Configuration> </Extension> </Render> in the rsreportserver.config, but I am not the only person with reports on this machine. I also found that you can pass &rc

Does the iif function compute both paths in SSRS or is it short-circuited?

别来无恙 提交于 2019-11-26 05:58:52
问题 I am trying to evaluate a Price per Kilo ($/Kg) based on sales of a product. This works fine if the product was acutally sold during the period specified. However if the product is not sold the Kg (the denominator) ends up being 0 (zero) and an error results. - Divide by Zero error. I tried this =iif(KgSold=0,0,Revenue/KgSold) It appears that the iif function is calculating both the true and false results. How do I get around this. Should I be using the switch function instead? =switch(KgSold

Passing parameter via url to sql server reporting service

ⅰ亾dé卋堺 提交于 2019-11-26 05:56:17
问题 I\'m trying to pass a parameter via the url to SSRS and it appears not to work! I\'m trying to pass a userId (string) via the url which will be passed to the database and used by the query. base url: http://blah/Reports/Pages/Report.aspx?ItemPath=MyReport tried this but it doesn\'t work: http://blah/Reports/Pages/Report.aspx?ItemPath=MyReport&UserId=fred Any ideas 回答1: As well as what Shiraz said, try something like this: http://<server>/ReportServer/Pages/ReportViewer.aspx?%2f<path>%2f