Showing posts with label useful. Show all posts
Showing posts with label useful. Show all posts

Thursday, March 22, 2012

Data Driven Subscription Query Parameters

Does anyone know if its possible to use report parameters as
parameters to a data driven subscription query. This would be useful
for changing the names of the files generated by the subscription
according to the parameters passed to the report.
For example, a report that takes a customer name as a parameter could
pass the customer name through to the data driven subscription query.
This would allow the customer name to be included in the file name of
the file that the data driven subscription generates.
Cheers,
David.In the parameters page, you are able to do a select statement & assign
parameters based on that.
So you could do a select * From names
Assuming your names table has a name field, then you could use the name &
field to assign it to a "file name".
"David Evans" wrote:
> Does anyone know if its possible to use report parameters as
> parameters to a data driven subscription query. This would be useful
> for changing the names of the files generated by the subscription
> according to the parameters passed to the report.
> For example, a report that takes a customer name as a parameter could
> pass the customer name through to the data driven subscription query.
> This would allow the customer name to be included in the file name of
> the file that the data driven subscription generates.
> Cheers,
> David.
>|||Yes, I know you can obtain the file name from a database query for a
data driven subscription. What I dont know is whether you can change
the file name based on the value of a report parameter.
Say I had a report with a parameter of customer name. If someone
created a data driven subscription and specified a customer of
customer1 for the customer name. I would like to be able to generate a
file name like "customer1_09-11-2004.csv".
I guess you would need to pass the customer name as the where clause
to the "select * from names" query mentioned below.
Is this possible.
Cheers,
David.
"mresanchez" <mresanchez@.donot-spam.com> wrote in message news:<1D9F5CAA-3EFD-4747-9455-F51DB8016FEF@.microsoft.com>...
> In the parameters page, you are able to do a select statement & assign
> parameters based on that.
> So you could do a select * From names
> Assuming your names table has a name field, then you could use the name &
> field to assign it to a "file name".
> "David Evans" wrote:
> > Does anyone know if its possible to use report parameters as
> > parameters to a data driven subscription query. This would be useful
> > for changing the names of the files generated by the subscription
> > according to the parameters passed to the report.
> >
> > For example, a report that takes a customer name as a parameter could
> > pass the customer name through to the data driven subscription query.
> > This would allow the customer name to be included in the file name of
> > the file that the data driven subscription generates.
> >
> > Cheers,
> >
> > David.
> >

Tuesday, February 14, 2012

Customizing the Job Activity Monitor

Hey, all!
There is a lot of useful info in the various windows within SSMS. However, I
don't personally want to see all the columns and/or data in, say, the Job
Activity Monitor. Is there any way to customize the view by removing columns?
And, is there any way to get my column order and filters to "stick" once I close
SSMS? Thanks for your help.You can't really customize it, no. But the information it uses comes from
very simple queries against catalog views and DMVs in msdb (you can just set
up profiler to trace when you launch the activity monitor, and it will show
you the queries). You could probably build your own little win form GUI
pretty easily, with the functionality you want, using VB.Net or C#.
On 4/30/08 9:52 AM, in article ON9vwlsqIHA.672@.TK2MSFTNGP02.phx.gbl,
"Darrell61" <Darrell.Wright.nospam@.okc.gov> wrote:
> Hey, all!
> There is a lot of useful info in the various windows within SSMS. However, I
> don't personally want to see all the columns and/or data in, say, the Job
> Activity Monitor. Is there any way to customize the view by removing columns?
> And, is there any way to get my column order and filters to "stick" once I
> close
> SSMS? Thanks for your help.