Execute Two Datasets Simultaneosly For One Report

Dec 18, 2007

Hi,
I have a scenario, where I have to execute a procedure and then run a query to get rows from a table. Whenever the user clicks on view report, these two should happen.
So I came with a strategy like, I have kept two datasets, one for executing SP and one for executing select query.
Can I run these two datasets one after the other, when view report was clicked?

Any other ideas?

View 4 Replies


ADVERTISEMENT

Using Two Datasets In A Report

Feb 25, 2008

hello everyone!

i have a report in which i use two datasets
the problem is that when i was using only one, there wasn't any scope argument you know, to tell in which dataset i am , because there was only one and all fields and cells in my table returned me the correct values

but as soon as i add the second data set and i drag and drop the datasets fields in my table

instead of having for instance



Code Snippet

=Fields!Consultant.Value






or




Code Snippet=(Fields!Consultant.Value, "dataset1")





it automtically applies the function "first"




Code Snippet=First(Fields!Consultant.Value, "dataset1")





and i don't understand why

please can you give me precious help on this

because it returns me the name of the first consultant only and if i deleter the function first in the expression, the report doens't work anymore

View 3 Replies View Related

2 Datasets In One Report?

Nov 29, 2007

Dear Experts,

I have a problem regarding my report.

Can we use 2 datasets in one report (tabular or chart, either one)?

my report get its data-fed from OLAP database (Cubes) and Oracle tables.

Let say the cube contains the actual sale (all aggregated and query using MDX) and the Oracle table contains the budget value for specific period.

And I am trying to construct a tabular like this:

date item type Revenue Budget Actual (Sale - Budget)
Jan calls regular 2000 1800 200
Jan calls super 3000 2500 500
Feb calls new 1000 900 100
Mar calls super 4500 4000 500
..... and so on

The data for date, item, type and Revenue are available in the OLAP (cubes) and the Budget value is available in Oracle table and we can't afford to transfer the Budget value to the cube.

Is this possible in SSRS? Please let me know if more information needed.

Thanks very much

View 6 Replies View Related

Having Two Datasets In A Single Report

Jan 31, 2007

Hi,

i have developed a report with sql reporting services 2005 which consists of two datasets in the same report.

Any performance issues it will cause?

Thanks,

Shanthi





View 14 Replies View Related

How To Get Results From 2 Datasets Into Report

Apr 18, 2008

Im trying to use 2 datasets in a report. The first one works ok, but when I add another one (a different table from the same database), it runs ok and brings up results in the data tab, but when I try to view it on the preview tab I get the following error:

an error occured during local report processing.
The definition of the report '/PI' is invalid.
The data set name is missing in the data region 'Dataset2'.

any ideas?
The queries i am running are simple SELECT * queries.

View 1 Replies View Related

Report With 2 Datasets (Formatting Question)

Apr 16, 2008

I have a report with two datasets(and two tables). They both have a field in common(a customer code).

I want the results to be one customer per page.
This isn't a problem when using one dataset, because I can just group by customer_code and page break at the end.

But in this case I need the customer info from the second dataset to be on the same page as the customer info from the first set.

Does anyone have any formatting tips on this?

View 4 Replies View Related

Problems Addressing Different Datasets Used In One Report

Mar 24, 2008

Take a look at my report in layout view:

http://img366.imageshack.us/my.php?image=unbenanntex1.png

My problem is that the left table works perfectly, the right one always sums all values and uses the first funtion on char-fields... I never encountered the problem before, is there an easy solution for this?

View 5 Replies View Related

Two Different Datasets With Same Field Names Used In Same Report

Oct 10, 2007

I am having two datasets in the same report, the column names are the same, in both the datasets, Now How can I use the individual fields in same report.
If I use (Fields!xyz.Value, "dsDataSet1") and (Fields!xyz.Value, "dsDataSet2")
It is giving me syntax error.

How can I use both these fieds, I do not want any aggregates

View 7 Replies View Related

Differentiate Between Fields Of TWO Datasets In A Single Report

Aug 22, 2006



Dear ppl,

I have got 2 datasets D1 & D2 in a Report. How can i differentiate between the fields of these two.

e.g. I got Name field in both the datasets. So when i do =Fields!Name.Value in a textbox the report gives me error

How can i tell the report from which dataset to pick up the field ??

Regards

Nabeel



View 9 Replies View Related

Payslip Report With Multiple Tables/datasets

Jan 14, 2008

A report I am currently working on is a payslip report.
This report has multiple tables on the page, each linked to their own specific dataset.
Eg I have Taxable Allowances table linked to a dataset that returns information relating to any taxable allowances for an employee, then Non-Taxable allowances, Deductions and so on...

Taxable allowance dataset example

SELECT
TA.TaxableTrDesc,
TA.TaxableTrText,
TA.TaxableSubQty,
TA.TaxableTrRate,
TA.TaxableTrFact,
TA.TaxableSubTtl
FROM
Employee E
INNER JOIN TransCurrentMaster TCM ON E.EmployeeCode = TCM.EmployeeCode
CROSS APPLY udfReportTaxableAllowances(E.EmployeeCode, TCM.PaySequence, ) TA
WHERE
E.EmployeeCode IN (@EmployeeCodeParameter)
AND TCM.PaySequence IN (@PaySequenceParameter)

The report works fine when you select one employee.
Currently when you try to select more than one employee, all the employee results are displayed in the tables, for example, Taxable Allowance table contains all taxable allowances records for all employees on the one page...
I'm not sure how I can amend this report so that it is able to be run for multiple employee records...
Any ideas, thoughts, feedback would be much appreciated..

Cheers

View 4 Replies View Related

Problem Using Stored Procedures In Report Datasets

Apr 26, 2007

I have a local Reporting Services report that I am modifying to use a stored procedure.



Although I am executing a stored procedure in the dataset query window, I also have to run a SELECT statement to retrieve the fields from a table that will populate the report.



The code that I have in the dataset query window looks like the following:



------------------------------------------------------------------------------------------------------------

EXECUTE @retCode = RunClaimVerification @parmID, @parmDate, @parmRecordID OUTPUT



SELECT *

FROM ClaimsDetail

WHERE ClaimRecordID = @parmRecordID

------------------------------------------------------------------------------------------------------------



When I execute this code, the only results that are returned SEEM TO BE the return code associated with running the stored procedure.



I thought about putting the SELECT code in the stored procedure and returning a table or a cursor from the stored procedure BUT it looks like tables are not supported as Report Parameter data types.



The stored procedure code generates Claim data that is stored in a SQL Table. The fields in this SQL table need to be retrieved by a unique record id to populate the fields in the report.



Does anybody have any suggestions as to how to go about doing this OR any suggestions that would help me resolve this problem?

View 1 Replies View Related

Multi-table DataSets In VS2005 SRS Report Designer

May 7, 2007

Hi all,



I need to use a multi-table dataset as a datasource for my report items in a SRS2005 report.

But from designer, I can only see the first table.



Can any one tell me if it is possible to use multiple tables in a dataset for SRS report?



Thanks,



Samson

View 1 Replies View Related

Reporting Services : Report Using Two Datasets From Two SSAS Cubes

Mar 5, 2008

Hi,

I would like to build an SSRS report from two different cubes (SSAS 2005). These cubes are contained in two different SSAS databases.

To do this, i created a dataset for each cube throught MDX expressions.
These datasets use common parameters defined in my report.
Thus, i try to integrate in my report chart datas from the two datasets, but my chart only target one dataset.

Is it possible to create a kind of dataset view to join my two datasets ?
Or is it possible to join the cubes from two different SSAS databases in an MDX expression to put all my datas in a single dataset ?

thx for your help.

Zohir

View 3 Replies View Related

Reporting Services :: Tabular Report Datasets - Grouping On Column

Jun 23, 2015

I have table which has 5 columns(col1,col2,col3,col4,col5) very simple and some data .

I would like to create a tabular  report  datasets on the report like shown below with grouping on col1

like
col1  some static text and dynamic text
------------------------
col1 col2 col3 col4
data data data data
------------------------
col1 some static & dynamic text
------------------------
col1 col2 col3 col4
data data data data
------------------------

Note I need to keep all the tables on the same page and when exported in excel they should come on same page sheet.

View 2 Replies View Related

Reporting Services :: How To Export 2 Datasets To 2 Excel Sheets In Single Report SSRS

Jun 21, 2015

I have two different dataset in one Report, Each Dataset result is binded to a different Table component.

When I export as Excel ,I am getting all this in One Excel sheet.

I need this in separate excel, as dataset1 in excel1 and dataset2 in excel2.

View 3 Replies View Related

Defining Report Datasets For Package Data From SQL Server Integration Services (SSIS)

Feb 22, 2008

Hi,

I'm using SQL 2008 Februar CTP and trying to use SSIS for Data Source as described in http://msdn2.microsoft.com/en-us/library/ms159215(SQL.100).aspx.
I've created SSIS package and preformed steps described in http://msdn2.microsoft.com/en-us/library/ms345250(SQL.100).aspx (after fixing version to 10.0.0.0).

Now I got next error when trying to add SSIS DataSource (in Report Designer - Visual Studio):


Error messageThe data extension SSIS could not be loaded.


Please help.

Matej

View 3 Replies View Related

Reporting Services :: Count Of Lookup Expression Column In Report With Multiple Datasets?

Sep 27, 2015

My report has two data sets that hold inventory from two different departments.    

ds_DeptA and ds_DeptB

I have a table, that pulls the DeptB status of DeptA record and displays it. This returns empty when the lookup fails to make a match, which is fine.  Typically means DeptB does not have the record yet.   I need to count these empty (null) feilds and populate it in a Text box outside of the table.
 
I just can't figure out the syntax with multiple datasets. I can't use the lookup expression as part of the count expression since the count expression is not contained in a table that has a dataset. 

table: ds_DeptA
fields:
ID
Name 
date_set_to_DeptB
<<Expr>> =Lookup(Fields!ID.Value,Fields!DeptA_ID.Value,Fields!DeptB_Status.Value, "ds_DeptB")

View 3 Replies View Related

Listing Datasets In Report (dataset Name, Dataset's Commands)

Oct 12, 2007



Is there any way to display this information in the report?

Thanks

View 3 Replies View Related

Report Services Wont Execute My SP

Dec 13, 2007

Everytime I try to execute my SP in Report Services this is the message I get
I can execute it in SQL Server and have no problems at all it gives me exactly what I ask for. Help please

TITLE: Microsoft Report Designer
------------------------------

An error occurred while executing the query.
Failed to convert parameter value from a String to a DateTime.

------------------------------
ADDITIONAL INFORMATION:

Failed to convert parameter value from a String to a DateTime. (System.Data)

------------------------------

String was not recognized as a valid DateTime. (mscorlib)



ALTER PROCEDURE [dbo].[SearchByDateLstNmDuration]
@StartDateserved datetime = null,
@EndDateserved datetime = null,
@Enter_LastName nvarchar(25) = null,
@Enter_Duration nvarchar(10) = null
AS
SELECT IR#, [Date served], [Reason for Exclusion], Duration, [First Name], [Last Name]
FROM [dbo].[Extended Exclusions]
WHERE (@StartDateserved is null or [Date served] >= @StartDateserved)
AND (@EndDateserved is null or [Date served] <= @EndDateserved)
AND (@Enter_LastName is null or [Last Name] = @Enter_LastName)
AND (@Enter_Duration is null or Duration = @Enter_Duration)

View 6 Replies View Related

Cannot Execute/view A Deployed Report In Rpt Mgr

Jan 24, 2008

I'm still trying to get a recent install/setup of Reporting Services 2005 working. I have Report Server installed on ServerA which already had IIS running on it, the Report Catalog can be found on a 2nd server, ServerB, with SQL 2005 Std Edition installed.

I am able to browse to the Reports Manager site and see the test report I deployed there through Visual Studio 2005, installed on my machine. But when I try to view the report, I get:

An error has occurred during report processing.
Cannot create a connection to data source '[our db name]'.
Login failed for user 'NT AUTHORITYANONYMOUS LOGON'


Now, when I created the data source for that report, I used a Trusted Connection, which of course worked for me when authoring on my machine since I belong to a Windows group that has been granted access to the SQL Server and db in question.

Since Reports Mgr requires Windows authentication, I assumed that when attempting to view the report from within Reports Manager, it would again use my credentials. So I'm confused where the local system account, NT AUTHORITYANONYMOUS LOGON is coming from.

Any help would be greatly appreciated.

M Noreen

View 7 Replies View Related

Ho To Make Data Source Web Method Execute Once Per A Report?

Jan 11, 2007

My report works with XMLDP data provider and obtains source data as a
result of a web method call. This memthod returns all data necessary
for the report. Thus, all of about 20 report datasets query the same
web method with the same parameters and then select appropriate data
with different ElementPath expressions. It's so inefficient and
time-consuming! I cant have respective web method for every dataset.
How can I configure SSRS to call web method only once while the report
is executing? Or how can I leverage the performance at all?

View 1 Replies View Related

Can You Run 32-bit And 64-bit SQL Server Simultaneosly On Same 64-bit Server?

Apr 2, 2007

Can Multiple, Different SQL Server 7, 2000, and 2005 Standard Edition Versions Run Simultaneously on a 64-bit Server?

Does SQL Server 2000 SP4 enable the Standard Edition to run in native x64-bit mode or is it just the Enterprise Edition?

We want to consolidate our three, separate 32-bit servers for SQL Server 7, SQL Server 2000, and SQL Server 2005 (all Standard Editions) to all run on a single, beefed up 64-bit server (quad CPU with 32GB RAM).

We want to be able to simultaneously run the SQL Server 7 and SQL Server 2000 Standard Editions in the WoW64 emulator and run the SQL Server 2005 Standard Edition in native x64 bit mode.

Some of the documentation I found says "SQL Server will NOT support both 32-bit SQL in WOW and native 64-bit SQL co-existing on same server.
Example: Once you install 32-bit SQL Server Engine the server Cannot run 64-bit Engine on same hardware."

I interpret that statement to apply to each individual SQL Server engine. Am I correct in my interpretation? Can we run the SQL Server 7 and SQL Server 2000 Standard Editions in the WoW64 emulator and run the SQL Server 2005 Standard Edition in native x64 bit mode simultaneously on the same 64-bit server?

View 6 Replies View Related

Minimum Set Of Permissions And User Rights To Execute A Report Definition

Jan 28, 2008

To use Reporting Services as a rendering engine I want to configure a local user on the server that has only the minimum set of permissions and user rights. The server is W2K3 SP2 and SQL 9.0.3200.

In particular, this local user has been removed from the local "Users" group and so is the "Authenticated Users" built-in group. In Reporting Services, it is mapped to a role that only has the "Execute Report Definitions" task permission.

Then, following the details in http://support.microsoft.com/kb/812614/ (Default permissions and user rights for IIS 6.0) I added all file security and local user rights required for "Users" and also granted and propagated "Read&Execute" on the "Reporting Services" folder and verified this using "Effective Permissions" on the ReportService2005.asmx file.

However, I still get 401 Unauthorized, also after a complete restart of all related machines and services.

Once I add the user or "Authenticated Users" back to "Users" everything works fine.

What permissions might I be missing? Where could I find those permission requirements documented?

I tried analyzing the 401 using auditing file and object access security but to no avail. There are no Failure audit entries in the Security log.


How can I investigate the minimum permission set?

What is the risk of leaving the user in the "Users" local group?


Any help appreciated.

View 1 Replies View Related

Where Did The Datasets Go In .NET 2.0???

Jul 5, 2006

I typically use  DataAdapters and Datasets from the toolbox when connecting to a SQL database.  Since switching to VS 2005, I am not able to find (or add) these items to the tool box for web site development.
   Any ideas on how I can get them back?  Or is there a better alternative to retrieving the data so I can process it?  Any help or suggestions would be appreciated.
 
Thank you

View 1 Replies View Related

About Datasets

Apr 19, 2007

Can anyone advise me on how to view the contents of a dataset in VS dotnet 2003..

I had filled a dataset from a query...But i don know what happens after filling the qry results.It might be helpful if someone tells me to view the contents of the dataset

View 1 Replies View Related

Ado Datasets

Jun 6, 2007

hi

i am using older ado datasets in a borland 6 program.

i need to retrieve the data per record count....



example is that i need all 1000 records but i only want to retrieve them 100 at a time....

how will i accomplish this?

View 1 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

Datasets And SQL Injection

Oct 25, 2007

I have become a big fan of the datasets in Visual Studio 2005.  I usually create the SQL for each method in the table adapter; however, I am wondering if there is any 'built-in' functions in the C files for sql injection prevention?  I have read that using stored procedures is a good method for prevention.  Should I be using SP rather than SQL within my methods in the data table?

View 5 Replies View Related

Working With Datasets

May 3, 2007

Hi,

Is there any possibility of combining data from two datasets to a single report item. If there is any thing that we can do, can any one please tell me what to do, so that my problem will be solved.

Thanks

Rajeev

View 1 Replies View Related

Large Datasets

Mar 27, 2008

Hi,

I have a table which has over 450,000 records in it, I have now split this into 4 so each table has around 100,000 records in it but I'm still having the problem of the data being returned really slowly.

What I need to do to this data is group it by a code and show the total for each code for every month of the year (this is currently based on one column and selecting the data accordingly). I have created views and put some indexes onto my table but the results are still being returned slowly. Does anyone have any suggestions of how I can speed this up?

Thanks

Gemma

View 5 Replies View Related

Datasets And Iff Statements

Sep 6, 2007



Hello experts,

I have a report with four different datasets that slice certain record by different days of the week. I can do the individual summing for each dataset by putting a , "datasetname" at in the expression. I also have 4 matrixes in the report that are grouped on certain transactions within each timeslice. My problem is that if I use the dataset name in the fields, the groups get ignored. Do I have to put the dataset name in each group expression? for example, here is my group expression...





Code Snippet
=iif(Left(Fields!TestName.Value,4)="VTAM","VTAM Logon",
iif(Left(Fields!TestName.Value,4)="CICS","VTAM Logon",
iif(Left(Fields!TestName.Value,4)="Shaw","SHAW Main Menu",
iif(Left(Fields!TestName.Value,7)="Inquiry","Inquiry Menu",
iif(Left(Fields!TestName.Value,6)="Search","Search Menu",
iif(Left(Fields!TestName.Value,6)="SEAX A","SEAX Auxiliary Search Menu",
iif(Left(Fields!TestName.Value,8)="SEAX - B","SEAX",
iif(Left(Fields!TestName.Value,4)="STLN","STLN","Other Value"))))))))






Not sure where I put the dataset name in this.

Thanks,
C

View 1 Replies View Related







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