I am using SQL Server 2008 R2 10.4290
after restart SSRS the access to ReportManager URL takes 03:55 minutes
I am using domain account to run the service, I have many server with the same issue.
I am using SQL Server 2008 R2 10.4290
after restart SSRS the access to ReportManager URL takes 03:55 minutes
I am using domain account to run the service, I have many server with the same issue.
I have searched for examples how to run a report from C#. The purpose is to make a printable report with all its features, like print preview, zooming, saving as PDF and also print it on the default (or selected) printer.
The report is pre designed in Report Builder and saved.
Are there any url showing a sample for this need?
Regards
Henrik Bergman
Q1. How to write MDX expression used to specify calculated measures of OLAP database build ?
Q2. Actually for our Project Server 2010 sites we have created a custom list "narrative" and I want to fetch this narrative list data in my Excel(BI Report) by establishing connection to SSAS server. The problem is, this narrative list in not available as cube so I need to create cube. Could I create cube for "narrative" list by writing MDX expression in OLAP configuration that will fetch data from my database (sharepoint DB) or that cube needs to be created using Analysis servies of BIDS (Business Intelligence Development Studio) ?
Q3. If I have to create cube using Business Intelligence Development Studio can I create it having Read permission on database (as once get created it needs to be deployed on SAAS server then we can process and run it and can get result: found by refering this article https://www.accelebrate.com/library/tutorials/ssas-2008) ?
Do let me know what steps needs to be done to create cube using MDX expression / developing cube using Business Intelligence Development Studio so finally it is available for excel reporting.
Please note :All the existing cubes fetch data from OLAP views of PWA_reporting Database but narrative list data is avialable only in userdata view of SP2010_Prod_ProjectServer so I need to fetch data from userdata view only ,but userdata view contains data rows for other lists too ,so how could I restrict this non -needed data rows while creating cube for narrative .
Hi Folks
I was hoping I'd get some help from Microsoft (this is question# 3 in the url below), but no luck:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/e98cea92-dcea-46ae-a6d1-80c0ec0b3883/several-questions-custom-query-designer-custom-data-processing-extensions?forum=sqlreportingservices&prof=required
No luck on StackOverflow, nor another forum as well.
Here's the problem (in 2 parts):
1. decompiling c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Microsoft.ReportingServices.QueryDesigners.dll
with JetBrains dotPeek, I find no direct way open the "Define Query Parameters" windowON DEMAND *AND IN A CONSTRUCTIVE MANNER*
2. I can open the "Define Query Parameters" window ON DEMAND *DESTRUCTIVELY*by failing to offer a valid connection string. This RUBS me to the core to have to fail a connection (after opening a connection)
in order to offer the "Define Query Parameters" window only when needed/expected.
my code snippet...
:
SqlConnection connection = new SqlConnection(dataSource); // TODO - identify if we have a best practice for ConnectionTimeout
connection.Open();
// distinguish SQL Server - DBSPSQL, DBTXSQL or DBTDSQL required for command type attribute
if (m_connection.CmdType.ToString() == "StoredProcedure")
{
SqlCommand sqlCmd = new System.Data.SqlClient.SqlCommand(this.m_cmdText.Replace(System.Environment.NewLine, " ").Trim(), connection);
sqlCmd.CommandType = CommandType.StoredProcedure;
SqlCommandBuilder.DeriveParameters(sqlCmd);
if (sqlCmd.Parameters.Count > 0)
{
for (int i = sqlCmd.Parameters.Count - 1; i >= 0; i += -1)
{
if (sqlCmd.Parameters[i].Value == null && !sqlCmd.Parameters[i].IsNullable &&
(sqlCmd.Parameters[i].Direction == System.Data.ParameterDirection.Input
|| sqlCmd.Parameters[i].Direction == System.Data.ParameterDirection.InputOutput))
{
------------> //TODO have not been able to figure out how to open the "Define Query Parameters" window in Microsoft.ReportingServices.QueryDesigners
connection.Dispose();
dataset = null;
throw new SystemException("one (and possibly more) REQUIRED parameter
value(s) is missing. Parameter " + sqlCmd.Parameters[i].ParameterName + " is null valued, but is typed as a NON-nullable parameter");
}
}
}
SqlDataReader dr = null;
try
{
dr = sqlCmd.ExecuteReader(CommandBehavior.CloseConnection);
dataset.Load(dr, LoadOption.OverwriteChanges, String.Empty);
:
:
This is all part of building my own CustomQueryDesigner and CustomDataProcessingExtension (which is 95% working). It's all of these other little things where I can't find any documentation which are chewing up time.
Thanks
Rob
Rob K
Hi all, some advice / explanation would be useful:
I have set up a report server with a few users to access and am currently in the stage of building up it's security.
All users have varying permissions and in IE everything seems good, i have a folder with shared datasets as exemplaries that can be accessed and viewed/opened in Report Builder by my 'SUser' Role, but it then blocks the user from making the changes and hence overwriting the original with the intention of the 'SUser' making this Dataset their own and saving it to their own my reports section.
In IE this is fine; I open the file, attempt to save it and i'm presented with an error - as expected.
However in firefox; I open the File , attempt to save it and it overwrites the existing file - no error displayed.
Could you advise if this is a fundamental limitation of SSRS in Firefox or something else is happening with the authentication methods?
Many thanks
BigFudge
In fetch xml,
How do I do conduct aggregate functions (most recent, sum, average) on retrieved columns, based on matches with another column.
let's say column a has a value of "Timothy."
How do I then find the total number of column b that also have a value of 'Timothy.'
But then the next value of column a is 'John.'
I would then want to display the total number of column b that have a value of 'John.'
If this is totally impossible, could introducing another dataset help?
Sql is not available here and fetchxml can only do so much. So this is going to have to be done with variables in the actual report.
For some reason the Shared dataset which were deleted are appearing for selection in the same project as well as other projects.Is there some place where Visual studio is caching these shared datasets?
In Visual studio 2012, inside a report when i am trying to add a new shared dataset, i can see deleted datasets in Dataset Properties window,when i select them and refresh fields i dnt get anything, i want to delete them, please suggest me how to do that.
Sam
hello everybody
is there a way to
pass current url as report prarameter while using report viewer web part
thanks in advance
Sergey Vdovin
Hello,
There is a report I built that pulls a lot of data understandably.
However, when I run this report, it times out. I have set the time out value to be 0 and it still times out.
The only error it brings is that, The operation has timed out..
Please help
I have a report which makes use of a cell made up of 5 merged cells and displays text. sometimes the textbox has and extra empty line at the bottom as if the text had a carriage return or new line character. however, I have run many tests making sure there is nothing extra at the end of the text. Please see the screenshot below.
The full text was:
PERMITTEE SHALL NOT TRANSFER OR ASSIGN THIS PERMIT WITHOUT WRITTEN CONSENT OF THE RAILROAD.
to test this, I deleted the last 2 charectors, "D." and i still get the extra empty line at the bottom.
if I keep deleting from the right 5 more charectors (testing as i delete each one), the extra line dissapears and all looks normal. the text that finally works is:
PERMITTEE SHALL NOT TRANSFER OR ASSIGN THIS PERMIT WITHOUT WRITTEN CONSENT OF THE R
Can someone explain what might be happening thats causing the extra blank line to appear in this cell?
Thank you.
Hi,
Running SQL Server 2008 R2 SSRS reports. On one report receiving this error:
An error occurred during rendering of the report. (rrRenderingError) An error occurred during rendering of the report. Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
Hi,
I'm getting this error message below while trying to use excel as a datasource within Report Builder 3.0. I can see the columns and rows but unable to display/run the report. Using Excel 32 bit and have the driver and user dsn created under c:/windows/syswow64/odbcad32.
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Dear all,
I'm trying to call the SSRS Webservice (SharePoint Integrated SQL 2012) with Powershell. My report has values and I have found several examples to do this. But I get an error in the parameter section with every code I try.
(I don't paste the complete script to keep the post readable :-)
The steps in my scripts are some kind of this:
1. Setting the Webservice instance:
$Reports = New-WebServiceProxy -Uri $URI -UseDefaultCredential -namespace "ReportExecution2005"
2. Building an array to hold the parameters:
$param1 = new-object ReportExecution2005.ParameterValue
$param1.Name = "Department"
$param1.Value = "Finance"
$parameters = [ReportExecution2005.ParameterValue[]]($param1)
#Set ExecutionParameters
$ExecParams = $rsExec.SetExecutionParameters($parameters, “en-us”);
$render = $rsExec.Render(‘PDF’, $deviceInfo,[ref] $extention, [ref] $mimeType,[ref] $encoding, [ref] $warnings, [ref] $streamIDs)
On execution I get the error message:
Cannot convert the "ReportExecution2005.ParameterValue" value of type "ReportExecution2005.ParameterValue" to type "RS.ParameterValue".
Cannot convert argument "0", with value: "RS.ParameterValue[]", for "SetExecutionParameters" to type "ReportExecution2005.ParameterValue[]": "Cannot convert the "RS.ParameterValue" value of
type "RS.ParameterValue" to type "ReportExecution2005.ParameterValue"."
Thanks for your help
Benjamin
I have a matrix with totals for column and rows. I can define a GRAND total for either the row or column.
How do I add a cell for grand total row AND grand total column.
table: column A column B total row
row1
row2
total column A column B grand total columns
grand total rows?
I have to show that both rows and columns have same totals.
Hi, I am using SQL Server 2008 R2 database & SSDT 2012 to develop reports. I have a request from one of the report users where he wants 2 reports to be exported to excel on different spreadsheets. Both these reports have same parameters month & year.
For instance Sales Report A & Sales Report B these need to be exported to Sales Report.xlsx with 2 sheets Sheet1$ would be Sales Report A & Sheet2$ would be Sales Report B.
Is there a way to accomplish this either using T-SQL or powershell?
Thanks in advance.....
Ione
Hi all,
I cannot upload a report to our report manager. The message returned in report manager is: The underlying connection was closed: An unexpected error occurred on a receive
I have checked the report server log file and found the below...
Any assistance greatly appreciated.
Thanks, Clay
-------Details--------
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. --->
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at Microsoft.ReportingServices.UI.Global.RSWebServiceWrapper.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.SqlServer.ReportingServices2005.ReportingService2005.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties)
at Microsoft.SqlServer.ReportingServices2005.RSConnection.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties)
at Microsoft.ReportingServices.UI.ImportPageCtrl.ApplyChanges()
at Microsoft.ReportingServices.UI.BaseApplyPage.ApplyBtn_Click(Object sender, EventArgs e)
at Microsoft.ReportingServices.UI.ScriptButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I have an env to generate report concurrently.
The datasource is a SQLServer2008.
Can I limit the numbers of Concurrent Connection to the datasource in SSRS?
Actually I have developed a cube that is fecting data from a view but it is pulling all the data rows from the view.
I can restrict undesired columns to come in my final cube but not the data rows.
Please note: My data source view contains data rows of two lists (Risks,Issues) I want to pull data rows of only one list(Risk)
Please provide detail steps to follow ,according to my requirement.
Hi,
I need to subscribe one report from SSRS to different set of people. EMail list is dynamic and will come from a database table.
Could somebody help us please.