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

How to run Batch file from ssms

$
0
0

Hello,

I am trying to run below code in ssms

DECLARE @CMDSQL VARCHAR(1000)
SET @CMDSQL = 'D:\TRY.bat'
EXEC xp_CMDShell @CMDSQL

but it is giving error like 

'D:\TRY.bat' is not recognized as an internal or external command

can anyone suggest what may be the reason for this error?


S surendra Chowdary


"An error has occurred" when attempting to subscribe to a report

$
0
0

Hello, I am hoping someone out there can help me solve this SSRS subscription issue.  Basically after configuring SSRS to use SSL connections only (remove port 80 support using SSRS Configuration Manager), I can no longer complete the subscription process and receive the attached error.  This is SQL server 2016, version 13.0.5201.2 running on Windows Server 2012 R2.

We have a wildcard certificate that I have installed which is trusted by all browsers.  The method I used to configure internal connections was to create an internal DNS zone directing all traffic to hostname.trusted_public_domain.com over to the internal IP address of this server.  The internal domain name of this domain joined server is different, for example domain.local.

This seems to work fine for logging in and reviewing reports, but subscriptions are totally broken.  As soon as I go back in and enable port 80 in the config manager, the subscriptions work fine..  However at this point users can also log in via clear text and potentially sensitive report data can be accessed without encryption.

Troubleshooting so far:

1. I have tried specifying a service account using the Reporting Services Config Manager and creating an SPN along with configuring kerberos authentication via the "rsreportserver.config" config file.

2. Registry changes found by Google foo...

Add a new DWORD value in the registry path HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
Value name: DisableStrictNameChecking 
Data type: REG_DWORD 
Base: Decimal 
Value: 1

Add a new Multi-String value in the registry path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0
Value name: BackConnectionHostNames 
Data type: Multi-String 
Value: hostname.trusted_public_domain.com

3. I have considered leaving port 80 enabled in the config manager and simply using the Windows firewall to block incoming port 80 connections.  Or even perhaps our perimeter firewall block inbound port 80 connections as a work around.  I have yet to test this option.

The request failed with HTTP status 401: Unauthorized. in SSRS

$
0
0

HI All,

I am getting the error when trying to call SSRS web service from SQL Agent Job. I have written C# code in Script task of SSIS Which calls SSRS reports and genrates report in pdf format. Now, the issue is that from my local machine using BIDS i am able to generate reports. The issue arises when running from SQL Agnet job and I have been told that the service account has the same access rights as I have. Please let me know  how to resolve. For Referebnce I am attaching the C# code. I am using SSRS 2008R2.

RS2005.ReportingService2005 rs;
                RE2005.ReportExecutionService rsExec;
                // Create a new proxy to the web service    
                rs = new RS2005.ReportingService2005();
                rsExec = new RE2005.ReportExecutionService();
                // Authenticate to the Web service using Windows credentials   
                rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
                rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;


                rs.Url = "http://" + (Dts.Variables["ReportingServicesServerName"].Value).ToString() + "/reportserver/reportservice2005.asmx";
                rsExec.Url = "http://" + (Dts.Variables["ReportingServicesServerName"].Value).ToString() + "/reportserver/reportexecution2005.asmx";



                string historyID = null;
                string deviceInfo = null;
                string format = "PDF";
                //string format = "WORD";
                Byte[] results;
                string encoding = String.Empty;
                string mimeType = String.Empty;
                string extension = String.Empty;
                RE2005.Warning[] warnings = null;
                string[] streamIDs = null;
                // Path of the Report    
               // string fileName = (Dts.Variables["DestinationPath"].Value).ToString() + "/" + (Dts.Variables["ControllerID"].Value).ToString() + "_" + DateTime.Now.ToString("MMddyyyy") + ".pdf";
                //In PDF format.
                String oFilePath = (Dts.Variables["DestinationPath"].Value).ToString() + "/" + "enVision_7DayReport_" + (Dts.Variables["ControllerID"].Value).ToString() + "_" + DateTime.Now.ToString("MMddyyyy") + ".pdf";
                String oFileName = "enVision_7DayReport_" + (Dts.Variables["ControllerID"].Value).ToString() + "_" + DateTime.Now.ToString("MMddyyyy") + ".pdf";
                String oFolderName= (Dts.Variables["ControllerID"].Value).ToString();

                Dts.Variables["FileName"].Value = oFilePath;

                // Name of the report 
                string _reportName = @"/Reports/Nalco 360 Service for Membranes Weekly Report";
                string _historyID = null;
                bool _forRendering = false;
                RS2005.ParameterValue[] _values = null;
                RS2005.DataSourceCredentials[] _credentials = null;
                RS2005.ReportParameter[] _parameters = null;

                {
                    MessageBox.Show("1");
                    _parameters = rs.GetReportParameters(_reportName, _historyID, _forRendering, _values, _credentials);
                    MessageBox.Show("2");
                    RE2005.ExecutionInfo ei = rsExec.LoadReport(_reportName, historyID);
                    RE2005.ParameterValue[] parameters = new RE2005.ParameterValue[1];
                    if (_parameters.Length > 0)
                    {
                        parameters[0] = new RE2005.ParameterValue();
                        parameters[0].Label = "ControllerID";
                        parameters[0].Name = "ControllerID";
                        parameters[0].Value =  Dts.Variables["ControllerID"].Value.ToString();
                    }
                    rsExec.SetExecutionParameters(parameters, "en-us");
                    rsExec.Timeout = 400000;
                    results = rsExec.Render(format, deviceInfo,
                        out extension, out encoding,
                        out mimeType, out warnings, out streamIDs);
                    using (FileStream stream = File.OpenWrite(oFilePath))
                    {
                        stream.Write(results, 0, results.Length);
                    }
                }

Thanks,

Saikat


Is it possible to stop a subscription from mailing if there is no data contained?

$
0
0

I have got a report that mails everyday a set of raw data, I only have to mail the report if there is data in the report, is it possible to have a check inside the subscription to only email if the report has data?

 

I am running a SSRS 2005 Reporting Enviroment.\

Thanks in Advance

Jacques

Is timedataretrieval, time processing and timerendering included in the SSRS definitions of "Allow the report to run for XXXXX seconds before timing out"

$
0
0

Hi,

Is timedataretrieval, time processing and timerendering included in the SSRS definitions of "Allow the report to run for XXXXX seconds before timing out"?

I've attached 2 screenshots

SSRS starting with sort on sum field with interactive sorting on column group

$
0
0

Hi all,

I have build a report with interactive sorting on a column group (this works)

I also have interactive sorting on the sum column of that group (also works)

My problem how do I start the report with a sort on that last sum column ?

I can't do it on the row group, because this already facilitates the interactive sorting on the column group.

Hope I explained it clear enough.

thanks in advance

RBie

SSRS report access issue

$
0
0

given role on ReportManager... but still getting issue,

The permissions granted to user '' are insufficient for performing this operation. (rsAccessDenied) 



  XXX\srini  --- what type of access need to given & domain level?

SSRS : Do not export Summary Page while exporting to PDF.

$
0
0
Hi guys, I have a report and this is subscribed to run @6 pm daily. This report creates a PDF for multiple patients. 

When the report is generated @6 pm and saved in the PDF form, there's a summary page i.e the first page in each PDF shouldn't show up. I know that we can delete it the page and format the report, but instead of deleting is there any other way " Like omitting the page while exporting to pdf'? 

Thanks

Return Activities that are "not Followed By" some other activities in SQL

$
0
0

Dear Friends

In the SQL database, i have a table of person, linked to a table of activities that are linked to each person as shown bellow:

i want to write an SQL query that will retrieve those persons that have an activity reunified but not followed by registered and not followed by infoShared.

NOTE: Please note that the Excel table/SQL database has more info ordered in that way (many people & many activities), this was just for display purpose, so the query must look at the broad picture of the database, not just the excel picture above.

The desired results is that i should be left with the persons marked in red (Since they do not have the 3 activities following each other) as shown below:

Please assist.


Rabelani Netshifhire

Power BI report server install on existing SSRS 2016 instance

$
0
0

We have a Sql 2016 Reporting service installation which has lot of content (Reports, dataset, data source etc...) in it. We would like to install (on-prem)Power BI report server on existing Reporting service instance. I tried to installPower BI report server but it creates its own instance PBIRSand does not let me configure into my existing instance

This is an important part of our product. If PBI SSRS is not supported on existing instance then it would be issue on our production environment.

I read this blog - https://powerbi.microsoft.com/en-us/documentation/reportserver-admin-handbook-overview/ which saysThere is no in place upgrade for SQL Server Reporting Services

At the same time, above blog points to a video - https://youtu.be/zacaEb9A4F0 in which they say that you can upgrade existing SSRS instance.

I am confused if this is supported or not. 


Regards,
Ojas Maru ( My blog )



Matrix Totals by Column Group

$
0
0

Hi there,

Sorry guys, got the post wrong the first time. This is what I am trying to do here;

I am having this issue here with a Matrix Totals, I will try to explain it with an example below;

                                ColumGroup1.Value1   ColumGroup1.Value2      ColumGroup1.Value3    

RowGroup1.value1                   10                       7                                  0.7            

RowGroup1.value2                   5                        2                                   0.4                

                Totals                   10                        9                 ColumGroup1.value2/ColumGroup1.value1 (9/10) 0.9              

So Totals for ColumGroup1.value1 and ColumGroup1.value2  for RowGroup1 is a straight Sum. Now for the ColumGroup1.Value3 is a percentage of ColumGroup1.Value2 /  ColumGroup1.Value1. How do I perform the percentage on the Total for RowGroup1?

Thanks very much for your help guys.

Mid


ssrs - text inside the bars of bar chart

$
0
0

Hello,
I am retrieving Name,Number from sql and trying to display onto a horizontal bar char
on the x axis I have the number field and the bars are showing one for each Name.
Question:
1-
How can I display the name inside the bars
2-
How can I make the bars thicker as they look narrow (Currently nothing is displayed inside the bars).

Thank you

SSRS Conditional Parameters

$
0
0

Hi,

I need to create a report in which if end user enters any date the data for the report should be fetched from the 1st  day of the of the month selected/entered by the end user.

Example:

If User enters date as 12-OCT-18 07:00:00.0 then,

Data should be fetched from 1st October 2018 to 12th October 

Same way if he selects some other date  as 12-SEP-18 07:00:00.0 then,

Data should be fetched from 1st September to 12th September.

Please help me in achieving such kind of scenario.

Need to insert multiple record for same employee in different table and different columns

$
0
0

I have two table table1 and table2

if table1 have more then one record for same employee I want second or third row data insert in another columns  in table2.

below is my requirement 

table1

empno

Amt

type

853

0.05

Lead Work

853

354

out of Class - Percent

543

.5

Lead Work Differential

543

23

Work Out of Class - Amount

543

320

Bilingual Differential

I want table1 data like table2

Table2

empno

Amt1

Type1

Amt2

Type2

Amt3

Type3

853

0.05

Lead Work

354

out of Class - Percent

543

.5

Lead Work Differential

23

Work Out of Class - Amount

320

Bilingual Differential

Any help very much appreciated.

ssrs reports similar stored procs

$
0
0

Hello,
Is there asql statement which shows which ssrs reports use similar stored procs?

Thank you


Report Builder button missing

$
0
0

My set up is Windows 7 HP SP1, SQL Server 2008 R2 Developer and SQL Server Business Intelligence Development Studio (9.0.30729.4462).  I think the BIDS version is an Express version.

I can't seem to see the Report Builder icon on http://localhost/Reports. I read somewhere that this may be something to do with my version of BIDS. I do however have SQL Server 2008 R2 Report Builder 3.0 installed.

The reason that I would like to use/see the Report Builder icon in http://localhost/Reports is that I cannot now carry using my training notes.

If I go into Edit Role Assignment the Administrator and myself are granted Report Builder permissions (i.e. May view report definitions).

Any ideas?



SSRS Reporting (Lookup and other features)

$
0
0

Hi,

I am currently working on a report which populates data from IP21 application.

As there are no relationships/common keys between the tables of that application,we have prepared another database which inherits the same content of the application so as to map such fields using the SSRS Lookup function.

The report consist of a column which has all the tag names to be included in the report through which we can evaluate a lookup function to populate data as per the tag names.

We need to break that particular column consisting of all the tag names into various parts(we can refer the common id for that)

Can we transform that column on the basis of ID into various number of columns?

For Example:

Consider the below as the current scenario we are dealing with:

ID              NAME    ------->Table containing all the tag names

01             Testing_Tag

01             Testing_Tag

01             Testing_Tag

01             Testing_Tag

02             Testing_Tag

02             Testing_Tag

02             Testing_Tag

03             Testing_Tag

03             Testing_Tag

03             Testing_Tag

04             Testing_Tag

04             Testing_Tag

Required Output from the column on SSRS level:

ID              NAME                                                     ------->Table containing all the tag names spitted into different columns

01             Testing_Tag              02      Testing_Tag              03   Testing_Tag               04   Testing_Tag              

01             Testing_Tag              02      Testing_Tag              03   Testing_Tag               04   Testing_Tag              

01             Testing_Tag              02      Testing_Tag              03   Testing_Tag             

01             Testing_Tag

As you can see in the above scenario we need to split that column into different columns so that they can be easily be accessible in SSRS Look up function.

As we are using Look Up function ,below is the output which we get

SSRS with Azure SQL data

$
0
0
I get this error "The data processing extension used for this report is not available. It has either been uninstalled, or it is not configured correctly." when trying to report on data held in an Azure SQL database. The reporting services confif file seems to have the correct entries. Anyone one else had this issue?

SSRS Auto Email Report Supscription

$
0
0

Hi,

Could you please provide me the steps to configure auto-email in SSRS?

1.How can we add/configure emails?

2.If mail fails how to track it and reschedule?

Please help!

SSL Redirect for SSRS 2012

Viewing all 10045 articles
Browse latest View live


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