ssrs-2008

SSRS selecting results based on comma delimited list

ぃ、小莉子 提交于 2019-12-02 01:11:53
问题 I have a table that stores IDs as INT, for example Table A: | ID | Name 1 A 2 B 3 C I have a query: SELECT * FROM A WHERE ID IN (@ID) This variable @ID will be coming from a comma separated list on the input parameter section in SSRS. The input will be something like 1,2,3 When I run this, I get the following error: Conversion failed when converting the nvarchar value '1,2,3' to data type int. Any thoughts? 回答1: As SSRS will return @ID as a comma-separated list probably the best way is search

Show max value of 10 rows in ssrs

廉价感情. 提交于 2019-12-02 00:56:57
问题 I have one report in which I want to show 10 employees data which have max salary. I want to do this by SSRS please help me. Please do it by SSRS not by SSMS. Thanks in Advance 回答1: I'm assuming you have a Dataset with one row per employee which is sorted by salary, descending. You can apply a TOP N filter to the table and set this to 10; this should return only the first ten rows: http://msdn.microsoft.com/en-us/library/ms156270(v=sql.100).aspx You could also set the Hidden attribute for the

How to deploy custom assembly in SSRS in Production Environment

北城以北 提交于 2019-12-02 00:50:44
I have created one custom assembly and this assembly uses a third party assembly. I have deployed a custom assembly in my local machine. But now, what should I do to deploy the report and those assemblies in the production environment. Is there any automated/wizard process available? You need to copy that assemblies to production server into Microsoft SQL Server\MSSRS\Reporting Services\ReportServer\bin folder. Then back to ReportServer folder and open rssrvpolicy.config file to grant FullTrust permission to CodeGroup with name Report_Expressions_Default_Permissions and CodeGroup with class

Invalid column name “USER_SOURCE”

五迷三道 提交于 2019-12-02 00:06:52
I have a stored procedure which is returning a result in an xml @Data output parameter To assign data in xml code is SELECT @data= ( SELECT DISTINCT CONVERT(varchar(2),u.USER_SOURCE ) + '~' + CONVERT(varchar(20), u.[USER_ID]) + '-' + CONVERT(varchar(10), u.DEALER_ID) as USER_DEALER_ID FROM #users u FOR XML RAW('users')) When I exec the procedure in SQL Server Mgmt Studio, I can see the result OK. This procedure is been called from another procedure, and that parent procedure is used in SSRS. In SSRS I am getting error Query execution failed for dataset 'DataSet1'. Invalid column name 'USER

SSRS no data in report

余生长醉 提交于 2019-12-01 21:39:17
问题 I have a single tablix on the SSRS report which fetches data from a stored procedure. I am trying to show a meesage to the User when no data is present say, "** There is no data for this report* ". I can do this easily by specifying this message in the **NoRowsMessage property of the tablix. But I want to show the headers of the tablix along with this message. If I don't set the NoRowsMessage property, I get the headers but no message, but if I do, I get the message but no headers. I need

SSRS selecting results based on comma delimited list

安稳与你 提交于 2019-12-01 21:19:10
I have a table that stores IDs as INT, for example Table A: | ID | Name 1 A 2 B 3 C I have a query: SELECT * FROM A WHERE ID IN (@ID) This variable @ID will be coming from a comma separated list on the input parameter section in SSRS. The input will be something like 1,2,3 When I run this, I get the following error: Conversion failed when converting the nvarchar value '1,2,3' to data type int. Any thoughts? As SSRS will return @ID as a comma-separated list probably the best way is search by charindex like this: select * from A Where charindex(','+cast(id as varchar(max))+',' , ','+@ID+',',1)>0

Creating a report with SSRS that iterates over a parameter

不羁的心 提交于 2019-12-01 21:08:01
I am modifying an existing report which is setup to let you view statistics per sales rep. You do this by changing the parameter sales rep in the report view. I need to modify the report so that it can display a page for each sales rep. This will then be exported to Excel with each sales rep statistics being displayed in a separate tab. I have researched this and found people talking about iterating over a report but I don't think that what they are referring too is what I am asking: http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/27ffabcc-6286-4fed-a8bf-0e5d78560be3

I want Datetime Parameter in DDMMYYYY Format in ssrs report

浪尽此生 提交于 2019-12-01 20:39:48
I want to change the Datetime parameter to DDMMYYYY format.its default value is MMddYYYY.when user will select date from date picker the date should be display in ddmmyyyy format. I tried all expression like =Format(Parameters!DateFrom.Value, "dd/MM/yy") =cdate(format(DateAdd("d", -61, now),"dd/MM/yyyy")) =cdate(format(DateAdd("d", -61, now),"dd/MM/yyyy")) but all doesnt work. Necromancing. Yes, you can - sort of. First, notice that SSRS takes the date format from the language that is specified in your browser. So you could just change the language of the browser. Obviously, you don't wanna

SSRS 2008 R2 Drill Down On-Demand to Sub Report

此生再无相见时 提交于 2019-12-01 19:34:47
问题 In SSRS 2008 R2, I was under the impression that a drill down to a sub-report would query the data on-demand. This isn't the case when my report gets rendered. Specifically, I have a Tablix that initially loads rows grouped by Person. When someone clicks the drilldown icon on that Person, a subreport displays some more data pertinent to that Person. The problem here is that every subreport is being loaded initially when the main report is being rendered. This takes forever to load. But if I

SSRS ReportingService2010 change embedded DataSource to shared DataSource

别说谁变了你拦得住时间么 提交于 2019-12-01 18:29:46
I have SQL Server 2008 with SSRS installed on one server and SQL Server 2008 R2 with SSRS installed on a new server. I want to migrate 200+ reports as well as a few shared schedules and a couple data sources from the first server to the second one using the SSRS web service API. For simplicity sake since there are only a couple of shared data sources I went ahead and created those using the Report Manager interface. Unfortunately, those who came before me embedded the data source information in each report (connection string, login, password, etc). I thought this would be a great time to