Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all 10045 articles
Browse latest View live

Using Multi-Valued Paramters with Data-Driven Subscriptions

$
0
0

I have researched this question and so far have found very different opinions as to how or if it is possible.

I have created 2 Data-driven subscriptions in SSRS. 1 for our sales persons and another for our managers reports. For the salespersons report, the solution works brilliantly as expected and I can appreciated the increased simplicitly for having 1 subscription to drive reports to a sales staff of over 100 folks.

One the other hand, I can't seem to grasp the significance of this type of solution for the Sales managers when they have multiple salespersons that report to them. Apparently, SSRS 2008 has provided no practical solution for this scenario that would be easily implemented in a Data driven subscription.

Since I can't find a way to pass in muliple integer values that represent each of the salesreps for a single manager, I am stuck with potentially sending multiple reports for each of the Sales Reps residing under a single manager. Not very elegant or useful as I'd hoped for using Data driven subscriptions. I have even changed the parameter datatype to string and used something like:

paramSalesPeople =substring((SELECT(', '+CAST(territoryid ASVARCHAR(2000)))

 

FROM Reports..SalesForce t2

 

 

WHERE t1.SalesManagerID = t2.SalesManagerID

 

 

ORDERBY SalesManagerID

 

 

FORXMLPATH('')), 3, 1000 )

to create a comma-delimited list of values for the parameters in effort of generating 1 (ONE) record per Manager. But the Data Driven Subscription fails miserably.

So the question, Is it or is it not possible to have multiple values passed as a single parameter to a data driven subscription to consolidate the number of required reports into one. If not, it would seem that it should be possible since it can be done from the reports parameters drop-down menu.

I have read someones recommendation to script the multi-valued parameter which seems to defeat the intent of the term "Data Driven' Subscription if I have to hard-code this logic into a script.

Can someone please provide me with a cut and dried statement as to what the options are from a Data driven perspective. If it's not possible then it's simply is what it is and I can put this controversial topic (for me) to rest.

Thanks

 

 


Can't find SSDT - SQL Server 2014

$
0
0

Hello,

I installed SQL Server 2014 and SSDT for VS2013 but I can't see SSDT shortcut anywhere.

Neither I can see any SSDT templates in the VS 2013.

Could you please help?


SSIS question


SSRS 2008 r2 - the Report Manager won't load unless "/Reports" is added to the DNS entry in address bar

$
0
0

Need some direction, please.

We are moving off  SSRS 2005 to a new server with SSRS 2008R2. The old installation (2005) a DNS entry was created "reports" with the ip address and port number simple. In the Configuration manager the Report Manager Virtual Directory is "Reports". Website is Default web site. Typing "reports" into the address bar opens up report manager. When this is done the address shows as reports/reports/pages/folder etc.

The new installation is configured the same(?). DNS entry "reports2" with new ip address and port number. In the Configuration manager the Report manager URL virtual directory is "Reports" URLs: =http://servername:port/Reports. The issue is when typing "Reports2" into the address bar the report manager won't open unless "reports" is added to the dns name i.e. http://reports2/reports is entered.

This thread took me to more like kind thread than my searches. Went into IIS in the default web site I added an htm file with a redirect. Then started it, it works. Maybe due to my inexperience but seems counter intuitive as I thought Reporting Services did away with any reliance on IIS.

Problem in deploying a report to localhost

$
0
0

A report runs successfully on report design and successfully complete the build process but when I clicked Deploy button

an error message came out:

Microsoft Report Designer

A connection could not made  to the report server http://localhost

Additional information:

The attempt to connect to the  report  server failed. Check your connection information and that the report server is a compatible version. (Microsoft ReportingServices.Designer)

 

What is the problem and how to solve it.

 

Thanks

SSRS - Action: MailTo not working in Excel Export

$
0
0

Hello:

In my reports, I have a link that enables users to send me an email if they want to provide feedback.  This is done by using a "mailto:" expression in Action.

If the user clicks on the link in IE, the link functions correctly and Outlook will open up with my email address, the Subject I've specified, etc.

However, if the user exports the report to Excel and then clicks on thel link, a "Reference is not valid" error message gets thrown.  This is because the link automatically havefile:///tempFileLocation/fileName -  appended to the beginning of the link.  Therefore it becomes something like "file:///tempFileLocation/fileName - mailto:emailAddress?subject=subjectName" etc.  

Why is the file location automatically appended to the beginning when the url is "mailto:"?  The other links will export and function correctly when exported to Excel.  However, any link with "mailto:" Action will not work when the report is exported to Excel.  What is the fix for this?

Thank you in advance!

SSRS report through data subscription - Connect to 2 different SQL server DB for excel attachment in EMail Deliery

$
0
0
I need to connect to 2 different SQL server without creating linked server for generating report. Is it possible in SSRS 2008 report service?

subscribe ssrs report and execute the report on success of another autosys job : SSRS

$
0
0

Is there a way to subscribe SSRS report using dynamic parameters for email and trigger the report from autosys job so that report should generate the exact time the job is triggered.

Let me describe, my SSRS report should be triggered on success of one autosys job. Is this possible?

I need to send email parameter and time of report schedule from this autosys job. please help. this is urgent .


Report builder 3.0 - separate grand total section to a new page

$
0
0

Hi!

   I want to find out, is it possible to separate Grand Total of a sub group to a new page?

   I tried using advanced mode, find the first line the Grand Total section and set its "RepeatOnNewPage" to true, but, when I execute the report, it will throw an error something like the value of RepeatOnNewPage of the TablixMemeber must be the same as its previous object.

   I need my report pages to separate by subGroup(SubGroupA, SubGroupB, A+BTotal).

Thanks in advance!

SH


Sum of all previous colmns

$
0
0

Good day all,

please assist with the below:

I have a report like the above, I want to, for example to find the total of all stores, i.e (8+10+14+4+2 =38), then use column #SALONS AUDITED to calculate the last total, e.g. %AUDITED dean : 4/38= 10.53%; lani : 5/38 = 13.16%; vette : 7/38 = 18.42%, etc

Regards

Zimiso

fixing ssrs report table column heading while scrolling is not working in reportviewer

$
0
0

Hi,

I also did the same thing. i just clicked on Advanced mode in Column Group, and then in Row Group Side i set Fixed Data=true for first  top static. I'm using local report not server report and i'm displaying that local report in Reportviewer. Now also its not working....

Regards,

Venkatesh

Report Builder 3.0 - stop a textbox from moving?

$
0
0

Some textbox are great moving, and need to when the box above gets extra data.. but how do a stop one from moving? make it stay right where I put it.

A stays where it is... for some reason.

but B doesnt? it moves down according the textboxes to the left (where is says phone) Its driving me nuts!

SSRS, VS2010, SQL2012: Parameters needed for connection and again at report run-time

$
0
0

Apologizing if this is discussed elsewhere (I have been searching...)

In VS2008 SSRS, when creating a dataset, only the name of the stored procedure was required.  When populating the dataset, VS prompted for the parameters, whether or not there were any.  In VS2010, the name of the stored procedure is not enough if there are parameters.

When creating a dataset in Visual Studio 2010 for databases and stored procedures in SQL 2012, I must provide (what should be) run-time parameters to obtain a field list and then to preview the report.  So the embedded dataset looks like this (wherein the only parameter is a password): exec dbo.spu_procedure1 @PW='999'
This works well and as expected during report design and development.  But 999 must be provided at run-time by the requester, and not in the dataset definition.  If I remove the parameter in the dataset's exec string before deploying the report, the field list is cleared and the report is unusable. So I cannot overcome what seems a contradiction: necessary to obtain a field list, but "yet-to-be-provided" when the user selects the report.

By keeping @PW='999' in the dataset specification, the user cannot override the parameter and automatically has a password to view the report.   I am missing something very basic...

(Did I say I'm in a hurry to convert about 150 reports from 2008 to 2012?)



SSRS report mail subsription is failing.

$
0
0

Hi All,

I have one SSRS report which is deployed in my local report server. I need to activate email subscription for the same. I have given my outlook email address and SMTP server which is copied from outlook settings to Report configuration manager. Then I have created a mail account and profile in sql server. I made the profile as public and default one. I have chosen basic authentication and provided my windows account and password for SMTP authentication. Port number is 25 which was given there as default. SSL was not ticked. Then I have tried with the below sp.

EXEC msdb.dbo.sp_send_dbmail

@recipients='julie.sam@test.com'

 ,@subject='test'

,@body='test'

Everything worked fine. I have got the mail also. Then I tried to create a mail subscription for the deployed report on my report server. I have scheduled it also. But I'm getting error message. Then searched in net and read somewhere that we are supposed to use windows authentication for SMTP. Then I changed the mail account to use windows authentication for SMTP. Even then also I'm getting the same error given below.

Failure sending mail: The SMTP server requires a secure connection or the
client was not authenticated. The server response was: 5.7.1 Client was not
authenticatedMail will not be resent.

I have noticed another issue.

Because of the above error, I have chosen to use the secure connection (SSL) in the mail account. Also, SMTP authentication is Basic Authentication. I am not able to send email from database itself after checking the secure connection option. I was able to send mail from database(by using the [proc dbo.sp_send_dbmail) when unchecking Secure connection option.  

I'm getting the below error when running this query

SELECT

*FROMmsdb.dbo.sysmail_event_logorderbylog_datedesc

The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 6 (2015-04-22T17:45:22). Exception Message: Cannot send mails to mail server. (The remote certificate is invalid according to the validation procedure.).
)

Please suggest

Regards,

Julie



SSRS:The tables are showing up in same page when there is no data even after giving page break option

$
0
0

Hi All,

I have a report with multiple tables. I need to show each tables in different pages. When there is no data for tables/tables , it is coming with the next table which has data. I have given "Add a page break after" option in the tablix but still the tables are coming together when no data available. How can I show it in different page?

Regards,

Julie

Security question - data source account and folder access

$
0
0

Hi,

I have a question about ssrs security.

In report manager I have set a list of users as browsers, and the builtin administrators are content manager in the parent folder where reports are. A user that is not an administrator and neither a user I added, has access to reports.

I'm thinking this person is having access because the data source of the reports use a administrator account to connect to the analysis services  using the option Credentials stored securely in the report server with the 2 checkboxes marked (use as windows credentials when connecting to the data source and impersonate the authenticated user).

Does this make sense? I simply marked this option because SSRS is in 1 server and SSAS in other and I think kerberos need to be configured and I haven't looked into it, but I think the report access is separated from the data source.

Need some insight.

Thank you



SSRS Report Viewer on VBA application

$
0
0

Hi there. I'm a bit nooby on those technologys, so please by placable.

Is it possible to include report viewer on VBA application (automation programming environment - FactoryTalk View SE from Rockwell Automation)? I designed a .rdl report on SQL Server Data Tools which is working on preview. I would like to show this report on Windows Form, developed by VBA. The Question is: is there some activeX control (or another plugin) to handle reports viewing on application (like e.g. CRviewer), or shall I write it by my self in VS? If there is no solution like just a viewer for include in VBA, please lead me on  how to handle this other way, plss.

which data region?

$
0
0

I'm trying to create a report that looks like this:

Dogs    33

Cats     15

Zebras   2

from a record set with a few hundred rows. I'm not looking for a table or a matrix, and I find that a list repeats for each record in the set.

The Y expression for the chart has a scope parameter that is not valid for an aggregate function Error

$
0
0

Hi,

appreciate if you can help me with the error that i encountered...i am a newbie to SSRS & Report Builder 3.0 so please be patient with me. I am trying to create a column chart that calculates the percentage of computers in our IT environment that are Actively communicating to our SCCM Server.

I have two datasets:

1. Total_Count_Of_AD_PC DataSet.

2. PC_With_Active_SCCM_Clients dataset.

Basically i wan to calculate the percentage for each Region (i.e. AP for Asia Pacific, EMEA, Americas).

Below is the Total_Count_Of_AD_PC  Dataset screenshot.

Below is the PC_With_Active_SCCM_Clients dataset.

Below is the expression that i used that is causing the error that i am hoping you can help me correct.

=CountDistinct(IIf(Fields!Region.Value="AP", "PC_With_Active_SCCM_Clients"),(Fields!Name.Value, "PC_With_Active_SCCM_Clients"),Nothing)/CountDistinct(IIf(Fields!Region.Value="AP", "Total_Count_Of_AD_PC"),(Fields!name.Value,"Total_Count_Of_AD_PC"),Nothing)

Below is the error message....

The Y expression for the chart ‘Chart2’ has a scope parameter that is not valid for an aggregate function.  The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, or the name of a dataset.

I really appreciate it very much if you can guide me/help me. thanks in advance.

Max date per group in SSRS

$
0
0

Hi,

How to select the max row/date per group. I am planing to do at report design level(i.e, trying to put filter condition in group properties).

Pl help me in this regard.

Thanks

Aneel

SSRS datetimepicker and textboxes behave differently when using Weekday function

$
0
0

In my SSRS report i have a date parameter and i want to set to it a default value with a complicated logic. I arrived at this strange behaviour:

Today is May 6th, wednesday. If i use the following expression:

DateAdd("d",Weekday(Today(),DayOfWeek.Sunday),Today())

for the default time picker I get May 9th. If I use exactly the same expression in a textbox in the same report

DateAdd("d",Weekday(Today(),DayOfWeek.Sunday),Today()).ToLongDateString()

I get May 10th! The only thing that changes is the toString. Why are the two values different? I tried with different expressions and the difference arises when i start using Weekday(Today(), somevalue).

The result of Weekday should be independent from regional settings as I am forcing Sunday to be the first day of the week, right?

Thank You

EWV

Viewing all 10045 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>