Is there any option to get timeout value from SSRS shared dataset - reporting-services

With the reference of following link we are able to set the timeout option for a shared dataset:
https://learn.microsoft.com/en-us/sql/reporting-services/report-server/setting-time-out-values-for-report-and-shared-dataset-processing-ssrs?view=sql-server-2017.
How can we get the timeout value set for a particular dataset that exists on the server?

Related

An attempt was made to set a data set parameter '#BrandName' that is not defined in this data set?

I'm trying to get data based on the parameter passed in the Power BI report server.
In the SSRS it was working fine
And I have set parameter like below in the shared dataset:
But in the Power BI report server, I'm getting an error like below
Below is query written in my shared dataset
Below is the parameter column for the shared dataset

User-specific mysql timeout

Is there a way to set a SELECT timeout for a specific mysql user? The following question address this for any user on a database -- How to set a maximum execution time for a mysql query? -- but I want to set it only for a specific mysql user, the user given below.
Id User Host db Command Time State Info
97 tvs0XXX ec2...com:47703 ax Query 55 Creating sort index SELECT...
You can define this using max_execution_time session variable (in milliseconds), something like:
SET SESSION max_execution_time=2000;
It should be done from a client for each session, so there is no way (currently) to assign this for a specific database user.

Setting a mysql session variable in Pentaho

I have a mysql view that requires several session variables to be set before querying it.
I have tried many ways to set that session variable but have been unable to.
Neither setting it in database connections, with xactions nor executing a set #variable:=value in the sql just before the query has worked for me.
The reason why I need that is because of using this workaround for a view with group by:
http://www.percona.com/blog/2010/05/19/a-workaround-for-the-performance-problems-of-temptable-views/
Do you know how can I set a session variable everytime I open a connection in Pentaho? I need that for CDE and Saiku
Thanks!

SSRS: Caching a shared Oracle Dataset with date parameter

I am using SSRS (2008R2) to create a large report against an Oracle
database.
Because of the size of the report I wanted to cache the shared
dataset overnight.
The dataset has a single parameter which should default to today's
date but be changeable in the report (although this would trigger
another cache).
I have struggled with this for 3 days and wanted to document how I got it to work, as well as get feedback on my approach.
1. Oracle Datasource:
I found that passing parameters to the dataset only worked well for me using the native Oracle drivers, not the OLE DB drivers.
2. Shared Dataset:
I was never able to get SSRS to pass a date parameter to Oracle. In my Oracle query I therefore used the conversion TO_DATE(:EffectiveDate,'YYYY-MM-DD"T"HH24:MI:SS') (you'll see why I had to use ISO 8601 format later).
When adding the variable :EffectiveDate to my SQL query a parameter was automatically added to by shared dataset. This initially caused the Oracle error ORA-01008: not all variables bound. This was resolved by deleting the dataset parameter and then clicking "refresh fields" on the dataset query screen to re-create it. The only difference apparently being that now the parameter name has a colon.
I have set the dataset parameter up as shown below in the screenshot:
The parameter is of type "text" and defaults to today at midnight in ISO 8601 format (=Format(Today(),"yyyy-MM-dd\T\0\0:\0\0:\0\0"))
3. Report Dataset:
The Report Dataset uses the Shared Dataset above and also has a dataset parameter. In this case I want the report dataset parameter to take a date from a report parameter but pass a string to the shared dataset parameter as below:
The Dataset Parameter is set to the value =Format(Parameters!EffectiveDate.Value,"yyyy-MM-dd\T\0\0:\0\0:\0\0")
4. Report Parameter:
The Report Parameter is set to "date" type as below with a default of =Today():
5. Shared Dataset Caching:
First I set the Shared Dataset to use cached data (on the report server via your browser):
Then I set up a "Cache Refresh Plan":
The Cache Refresh Plan seems very picky about Parameter format and it was this last step that only seems to work if passing dates as ISO 8601 compliant strings.
6. Notes:
:EffectiveDate is the name of my Oracle string bind variable and EffectiveDate is the name of my Report parameter. Change your code appropriately.
I was only interested in the date (i.e. not the time). If you need time as well you may need to make some changes.
In order to let the end user know how old the data was, I added an extra column ,SYSDATE AS DATA_AGE to my SQL Query. I was then able to reference the age of the data in my report header with First(Fields!Report_Date.Value, "<report_dataset_name")
I am able to create snapshots of the report but all of the prompts are greyed out, even though all the other prompts only effect report filtering.
To have different prompt defaults in my snapshots I used the test IsNothing(User!UserID). I'd love to know if there was a better way.
My example isn't necessarily in the order in which I set things up (i.e. I reference the Report Parameter before showing its setup).

In SSIS SQL Server Table Configuration, can we configure connection string of a connection manager multiple times?

In my SSIS package, I have a DFT with an OLEDB source and OLEDB Destination.
I have to load the records from the source to multiple destination tables.
I am using SQL server Table Configuration in the package.
So In the configuration table I have multiple records to configure the destination connection with same ConfigurationFilter value.
Is it possible to do this using SQL server table configuration?
Based upon your answer to my comment, what you want is a loop with an expression for the connection string of your table connection.
Set up a loop to either read from a table or an enum (where you type the values in manually (better to use table) read machine and database name into variable in loop. set up connection to have an expression based upon the variables loaded in loop for the connection string. create dft for data movement in loop choose connection with expression in it. every time the loop iterates, it will update the connection string and you will be acting on a different server/db for the same table.