Execute Reports Using Rs.exe

Aug 28, 2007

Hi,

I run reports using rs.exe from inside a stored procedure like this :

set @cmd = 'rs -i "C:
ep.rss" -s http://localhost/reportserver -v custparam=70 -v orderparam=20 -l 0 -e mgmt2000 -t -b'

EXEC xp_cmdshell @cmd


The rep.rss file looks like this :

Dim format as string = "PDF"
Dim filePath as String = "C:Reports"
Dim fileN as String = "MyReport"
Dim fileName as String = filePath + fileN + ".pdf"

Dim reportPath as String = "/MyReports/Report1"

Public Sub Main()

' Prepare Render arguments
Dim historyID as string = Nothing
Dim deviceInfo as string = Nothing
Dim showHide as string = Nothing
Dim results() as Byte
Dim encoding as string
Dim mimeType as string = "application/pdf"
Dim warnings() AS Warning = Nothing
Dim reportHistoryParameters() As ParameterValue = Nothing
Dim streamIDs() as string = Nothing
rs.Credentials = System.Net.CredentialCache.DefaultCredentials

' Report Parameters
Dim parameters(1) As ParameterValue
parameters(0) = New ParameterValue()
parameters(0).Name = "cust_no"
parameters(0).Value = custparam
parameters(1) = New ParameterValue()
parameters(1).Name = "order_no"
parameters(1).Value = orderparam
results = rs.Render(reportPath, format, _
Nothing, Nothing, parameters, _
Nothing, Nothing, encoding, mimeType, _
reportHistoryParameters, warnings, streamIDs)

' Open a file stream and write out the report
Dim stream As FileStream = File.OpenWrite(fileName)
stream.Write(results, 0, results.Length)
stream.Close()

End Sub



The problem is that the command hangs the stored proc for a long time. At times when I use the same command on a command line, it executes and generates a pdf at times. Sometimes it just keeps on executing endlessly.

How do I troubleshoot this? I am using Sql 2005 with sp2 on Vista.
Has it got to do something with xp_cmdshell? I enabled it using sql server surface area configuration.

Vidkshi

View 1 Replies


ADVERTISEMENT

How To Execute Multiple Reports With The Same Parameter

Mar 29, 2007

We have timed-based subscriptions set up for our standard set of 10 client
reports which run monthly with the appropriate parameters set for each
of our clients. Our management has requested that we provide them with
the ability to run the set of 10 reports together at will. So we would
provide the client parameter and all 10 reports would be generated.
What is the recommended approach to accomplish this? We are using Sql
Server 2005, Visual Studio 2003 and .Net 2.0.

View 1 Replies View Related

SQL 2012 :: Connect To SAP From SSRS And Execute Reports?

Apr 14, 2014

can i connect to SAP from SSRS and execute reports?

View 1 Replies View Related

Comparison Of SQL Server Reporting Services To Access Reports, Crystal Reports, Cognos Or Other Options

Nov 5, 2007

Hello SQL Server Experts, Data Analysts, and Report Writers et al:

re: Reporting Options with SQL Server

I wanted to propose an offshoot to the pryor thread:

Would anyone take a stab at comparing Access Reports, Crystal Reports,
Cognos or other options to all the Reporting Services and its components offered as part ofSQL Server, especially as to extracting data from SQL Server into a report format?

I guess this is a far as capabilites, ease of use, limitations, and especially formatting
or presentation of the end report product?

Thank you to all, and I hope this is a beneficial discussion to others.

Hal1490



Hal9000

View 4 Replies View Related

Reports Usage Frequency For All The Existing Reports On SSRS 2000

Mar 18, 2008

I have an already published application running several MS SQL Server 2000 Reporting Services report.
I need a way to find from either the reporting services log or the application server (IIS) logs or windows log
to know the frequency of each report being used.

Based on this info, the business needs to know which reports are being used and to what extend?
How can I acheive this?

I have already got the IIS logs and it did not give the required info.
I have looked into the Reporting Services logs but it does not provide the info either.

Any help is appreciated

View 2 Replies View Related

Reports Usage Frequency For All The Existing Reports On SSRS 2000

Mar 18, 2008

I have an already published application running several MS SQL Server 2000 Reporting Services report.
I need a way to find from either the reporting services log or the application server (IIS) logs or windows log
to know the frequency of each report being used.

Based on this info, the business needs to know which reports are being used and to what extend?
How can I acheive this?

I have already got the IIS logs and it did not give the required info.
I have looked into the Reporting Services logs but it does not provide the info either.

Any help is appreciated

View 1 Replies View Related

Remove All Reports ( Not Data Sources) From Reports Server

Jan 23, 2007

Hi does anyone know how to do the above with out going through reportserver url?

Preferably by using a cmd tool ? such rs.exe

or through the backend in the reportserver DB?

Thanks

Dave

View 2 Replies View Related

Migration Of SQL Reports 2000 To SQL Reports 2005

Feb 13, 2008

Hi Friends,

Could I migrate the reports which are developed on SQL 2000 to SQL 2005. If Yes then How ...

Could anyone explain me. How it works.


Thanks
sqlferns

View 2 Replies View Related

Converting Crystal Reports To SSRS Reports

Mar 27, 2008


My issue is with converting multi-value parameters:

In Crystal Reports, you can set a parameter to accept multiple vales (Discrete, Range or Discrete and Range).

As an example:

I have a database table with a column called ID.
I can create a parameter called param_id and set the options of the parameter to "Allow multiple range values".

With this setup, I can limit the result set of the report by comparing the param_id parameter to the ID column in the database. Because param_id is a multi-value range parameter, I can pass it the following data:
1 - 50
60 - 80
150 - 127

This will only return results within those ranges.


Does anyone know if SSRS provides this kind of functionality?

Thanks,

Patrick Conway

View 9 Replies View Related

Copy Reports From Other Users My Reports Folder

Aug 7, 2007

Is there a way to copy reports from other users "My reports" folder? I am logging onto the management studio reporting services using an administrative account and I am able to view the reports from all users' "My Reports" folder. But I am not able to export them as an rdl file. I am able to export reports from other common folders, but not from the "My Reports" folder.

The reason I need to do this is some of the users have created some reports in one environment and the reports are available in their respective "My Reports" folder. I need to move these reports to their corresponding "My Reports" folder in another environment.


Is there a way to do this?

Thanks for your help.

View 3 Replies View Related

Help! The Transaction Log Is Full Error In SSIS Execute SQL Task When I Execute A DELETE SQL Query

Dec 6, 2006

Dear all:

I had got the below error when I execute a DELETE SQL query in SSIS Execute SQL Task :

Error: 0xC002F210 at DelAFKO, Execute SQL Task: Executing the query "DELETE FROM [CQMS_SAP].[dbo].[AFKO]" failed with the following error: "The transaction log for database 'CQMS_SAP' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.


But my disk has large as more than 6 GB space, and I query the log_reuse_wait_desc column in sys.databases which return value as "NOTHING".

So this confused me, any one has any experience on this?

Many thanks,

Tomorrow

View 5 Replies View Related

Looking For A Way To Refer To A Package Variable Within Any Transact-SQL Code Included In Execute SQL Or Execute T-SQL Task

Apr 19, 2007

I'm looking for a way to refer to a package variable within any
Transact-SQL code included in either an Execute SQL or Execute T-SQL
task. If this can be done, I need to know the technique to use -
whether it's something similar to a parameter placeholder question
mark or something else.


FYI - I've been able to successfully execute Transact-SQL statements
within the Execute SQL task, so I don't think the Execute T-SQL task
is even necessary for this purpose.

View 5 Replies View Related

SSIS Execute Package With Execute Out Of Process = True Causes ProductLevelToLow Error

Mar 6, 2008



Hi.

I have a master package, which executes child packages that are located on a SQL Server. The Child packages execute other child packages which are also located on the SQL server.

Everything works fine when I execute in process. But when I set the parameter in the mater package ExecutePackageTask to ExecuteOutOfProcess = True, I get the following error


Error: 0xC00470FE at DFT Load Data, DTS.Pipeline: SSIS Error Code DTS_E_PRODUCTLEVELTOLOW. The product level is insufficient for component "Row Count" (5349).

Error: 0xC00470FE at DFT Load Data, DTS.Pipeline: SSIS Error Code DTS_E_PRODUCTLEVELTOLOW. The product level is insufficient for component "SCR Custom Split" (6399).

Error: 0xC00470FE at DFT Load Data, DTS.Pipeline: SSIS Error Code DTS_E_PRODUCTLEVELTOLOW. The product level is insufficient for component "SCR Data Source" (5100).

Error: 0xC00470FE at DFT Load Data, DTS.Pipeline: SSIS Error Code DTS_E_PRODUCTLEVELTOLOW. The product level is insufficient for component "DST_SCR Load Data" (6149).

The child packages all run fine when executed directly, and the master package runs fine if Execute Out of Process is False.

Any help would be greatly appreciated.

Thanks

Geoff.

View 7 Replies View Related

Conditional Execute By Execute SQL Task Return Value?

Jun 25, 2007

I have a SSIS package contains an "Execute SQL Task". The SQL will raise error or succeed. However, it sounds the package won't pick up the raised error?

Or is it possible to conditional run other control flow items according the the status of SQL task execution?

View 1 Replies View Related

How To Show ChartFX Reports In ReportServer And How To Show Tooltips For Reports Using Chart Properties

Dec 31, 2007



Hi all,

I have two problems.

1. I downloaded ChartFXRSTrial and created one chart, and able to deploy it in ReportServer, but the problem is the reports are not showing there, i checked the configuration of .dll files in the help provided by chartFX, but couldn't get anything, so could help me on this.

2. How to give Tooltip for the X- axis or Y- axis values in the ReportServer , i tried using chartproperties of .rdl file, but didnt understand it. can help me on this, and one more i tried with Dundas too, If im giving tooltip as #valy then, it is showing samething in reportserver instead the values of 'Y-axis'.

Thanks,
Mahesh Manthena

View 1 Replies View Related

Reports About The Reports Usage

Apr 18, 2007

Hi,



We just deployed a report solution and I would like to know when and how much each report is used. Is there a report for it ?



With regards,



Constantijn Enders

View 3 Replies View Related

Execute A SP In The Execute SQL Task

Jan 25, 2007

I am trying to execute a SP in the execute SQL task in SSIS 2005..

but I keep getting an error:

SSIS package "Package.dtsx" starting.
Error: 0xC002F210 at Load_Gs_Modifier_1, Execute SQL Task: Executing the query "exec Load_GS_Modifier_1 ?, ?" failed with the following error: "Could not find stored procedure 'exec Load_GS_Modifier_1 ?, ?'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Task failed: Load_Gs_Modifier_1
SSIS package "Package.dtsx" finis


I have set up two user parameters: startdate and enddate.. I am not sure what I am doing wrong????

View 3 Replies View Related

Trigger Not Execute Some Data Or Insert Not Execute A Trigger For Some Data

Mar 3, 2008

I have trigger, but not execute somedata because insert few row in every second. I use java to insert data to SQL server 2005. Data inserted to a table but not executing trigger for some data.
For example 100 data every second inserted to a table.

If insert data one by one to a table trigger fires success.
Please Help me.

View 1 Replies View Related

Reports

Oct 24, 2006

Hi all, how can we get running totals for particular column in sqlserver crystal reports

View 1 Replies View Related

Reports

Oct 24, 2006

how to get running totals for a particular field in sqlserver reports

View 2 Replies View Related

Really Need HELP With REPORTS

Nov 8, 2007

Hi,
I have all stored procedures for report for this month and previous month. Now my task is to generate report to find out the difference for all coulms those are same for both month reports.
EX of final report

Month1|Month2|Difference|
sales |Sales | % |
| | |
| | |
| | |


There are other colums in those rows too..
So could any one help me out.
I want my out put in Excel sheet
And its a recuant report ..so i have to use stored procedure.

LOOKING FOR HELP ASAP

View 1 Replies View Related

How To Know Which Reports Are Being Run

Feb 20, 2008

How to know which reports are being run/accessed ? Do i have to query some tables for that.

View 1 Replies View Related

SQL Reports.

Jul 20, 2005

Hi,I have some queries regarding SQL Reports.1. What is SQL Reporting Services?2. What is it's Architechture?3. When it gonna release?It is urgent.If somebody can give me answers quickly.....Thanks in advance,Pratik

View 1 Replies View Related

Sub-reports

Nov 30, 2007

I am using a sub-report to render a group which contains the detail lines in my report. The report works fine, however, it is not page-breaking, so the report is rendered in just one looonnnggg page with many detail lines.
How do I force the report to page-break when it hits the page length.
Thanks for your help or leads.

View 4 Replies View Related

Reports C#

May 21, 2008

Does anyone have any good examples or tutorials on how to use the C# Reports for the databases. Also what is the difference from a normal Microsoft Report or Crystal Report. I am using Visual Studio 2008 Professional if that helps or changes anything. I am trying to use these to view the report to created by a C# application that i ahave created.

Thanks
~Nathan

View 4 Replies View Related

Reports

Jun 30, 2006

Hi,



I am generating a report based on certain criterias. Each task may report something. As of now I have created a report table and inserting data from each task into that.

At final stage I order the records and write to a txt file.The table I am using to insert is present in one of the database I'm using.

Is there any way I can store it a common repository [ I have to insert recs from diff dataflow task ]. At final stage group and sort it. Load into a text file?

Any Ideas?

View 1 Replies View Related

SQL Reports (2)

Mar 25, 2008

Hi. I am trying to create a report that requires multiple select statements and I wish the results to be returned as one 'table'. The jist of what I am trying to do is as follows.

I am creating a report for a call centre. This report is to display results for the following columns in table format:

COLUMN A) Count of calls raised during this reporting period,
COLUMN B) Count of calls open from the previous reporting period,
COLUMN C) Count of calls worked on during this reporting period,
COLUMN D) Count of calls closed during this reporting period.

These counts are all displayed by the severity of the call e.g. the rows will be titled 1 to 5. Each column is a select statement in itself, pulling data from various tables.

I have managed to get the results I desire when I return results from three queries (in the example below, REPORT 2, this is query A, query B and query D).


REPORT 1
SELECT COALESCE (A.severity, B.severity, D.severity) AS Severity,
ISNULL(A.QUERYA, 0) AS [Calls Raised during this Reporting Period],
ISNULL(B.QUERYB, 0) AS [Calls Open from Previous Reporting Period],
ISNULL(D.QUERYD, 0) AS [Calls Closed During this Reporting Period]
FROM (SELECT DISTINCT severity, COUNT(*) AS [QUERYA]
FROM dbo.opencall
WHERE <WHERE CLAUSE A>
GROUP BY severity) A FULL OUTER JOIN
(SELECT DISTINCT severity, COUNT(*) AS [QUERYB]
FROM dbo.opencall
WHERE <WHERE CLAUSE B>
GROUP BY severity) B ON A.severity = B.severity FULL OUTER JOIN
(SELECT DISTINCT severity, COUNT(*) AS [QUERYD]
FROM dbo.opencall
WHERE <WHERE CLAUSE D>
GROUP BY severity) D ON A.severity = D.severity
ORDER BY COALESCE (A.severity, B.severity, D.severity)








A

B

D


Severity

Calls Raised during this Reporting Period

Calls Open from Previous Reporting Period

Calls Closed During this Reporting Period


1

0

1

0


2

1

0

1


3

2

1

0


4

0

1

0


5

1

0

0

However, when I join a 4th query to the above, query C (as in REPORT 2, below) I get repeated rows.

REPORT 2
SELECT COALESCE (A.severity, B.severity, C.severity, D.severity) AS Severity,
ISNULL(A.QUERYA, 0) AS [Calls Raised during this Reporting Period],
ISNULL(B.QUERYB, 0) AS [Calls Open from Previous Reporting Period],
ISNULL(C.QUERYC, 0) AS [Calls Worked on During this Reporting Period],
ISNULL(D.QUERYD, 0) AS [Calls Closed During this Reporting Period]
FROM (SELECT DISTINCT severity, COUNT(*) AS [QUERYA]
FROM dbo.opencall
WHERE <WHERE CLAUSE A>
GROUP BY severity) A FULL OUTER JOIN
(SELECT DISTINCT severity, COUNT(*) AS [QUERYB]
FROM dbo.opencall
WHERE <WHERE CLAUSE B>
GROUP BY severity) B ON A.severity = B.severity FULL OUTER JOIN
(SELECT DISTINCT severity, COUNT(*) AS [QUERYC]
FROM dbo.opencall
WHERE <WHERE CLAUSE C>
GROUP BY severity) C ON B.severity = C.severity FULL OUTER JOIN
(SELECT DISTINCT severity, COUNT(*) AS [QUERYD]
FROM dbo.opencall
WHERE <WHERE CLAUSE D>
GROUP BY severity) D ON A.severity = D.severity
ORDER BY COALESCE (A.severity, B.severity, C.severity, D.severity


Severity A B C D
1 0 1 1 0
2 1 0 0 1
2 0 0 1 0
3 2 1 3 0
4 0 1 1 0
5 1 0 0 0
5 0 0 1 0


Has any body ay idea of how to join a 4th query and further queries without getting these repeated rows?


View 2 Replies View Related

Log Reports

Jul 10, 2006

Hi,

Does Anyone has any idea that how do we extract the log reports that are generated whenever we run a package onto a text file , i mean the whole report rather than just a single message.

View 9 Replies View Related

Reports

May 31, 2008

Im trying to create some reports using C# express and SQL Server Express with additional Tools.

I cant seem to find any of the tool in C#. I expected the reportviewer control to be in my toolbox but it isn't.

Can the express version not perform reporting services?

View 3 Replies View Related

Sub Reports

Oct 29, 2007



I have some reports whcih contain sub reports
My users when they export these reports in to excel, sub reports never get exported "There is a Sub Report error" in that space.


I did figure out a workaround for this issue. They can always export the report into WebArchive format and open it before they save the report, once opened in web archive format, give a right click to export into in Excel, this works great but as always this is not a permanat fix

Or does anyone have a better workaround to export an report into excel which has subreports ?

View 1 Replies View Related

Reports Getting Cut Off

Jul 23, 2007

I have a number of reports that can be somewhat wide. When viewing some of them in the report manager, using IE6, the right side of the report gets cut off. There are no horizontal scroll bars or anything. If I just refresh the page from the toolbar, my report displays how it should.

Has anyone had this problem, or have a solution so that I don't have to refresh my page every time?

Thanks,

Erik

View 3 Replies View Related

Reports

May 2, 2008

If a Letter is automatically generated using reporting services, Can we export that letter to word and make any modification to that letter format???

View 3 Replies View Related

Error Sql Reports

Mar 28, 2007

I keep getting an error around the where statement can some one help me Sql Reports what is missing
 
SET DATEFORMAT mdySELECT      PAYER.PAY_COMPANY AS Company, PAYER.PAY_CITY AS Branch, DATEPART(yy, INVOICE_AR.INVOICE_DATE) AS OrderYear, 'Q' + DATENAME(qq, INVOICE_AR.INVOICE_DATE) AS OrderQtr
FROM        PAYER INNER JOIN INVOICE_AR
WHERE       (INVOICE_AR.INVOICE_DATE BETWEEN '1/01/2004' AND '12/31/2005')
GROUP BY    DATEPART(yy, INVOICE_AR.INVOICE_DATE), PAYER.PAY_COMPANY, PAYER.PAY_CITY, 'Q' + DATENAME(qq, INVOICE_AR.INVOICE_DATE)

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved