Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8726159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:11:38+00:00 2026-06-13T08:11:38+00:00

I have a data driven subscription which delivers a report to an email alias

  • 0

I have a data driven subscription which delivers a report to an email alias at specific time.
In a subscription query:

select WorkProjectionReportTime,WorkProjectionReportToMailAlias,
'Work Projection Report for the period ' + CONVERT(varchar(10),GETDATE()-31,101)+ ' to '+CONVERT(varchar(10),GETDATE()-1,101) as Subject,
CONVERT(varchar(10),GETDATE()-31,101) as FromDate,CONVERT(varchar(10),GETDATE()-1,101) as ToDate, 60 as WO, 
'Please see the attachment for the details' as body
from tblConfig
Pivot ( MAX(cValue) for cKey in (WorkProjectionReportTime,WorkProjectionReportToMailAlias) ) as xyz

So by query I get all the required fields, Email To, Time, report parameters.

I want to use the time parameter to schedule report.
e.g. if time is 9:30 the report should be mailed at 9:30 AM etc.
I want to achieve this from SQL or database front and not from C#. How to achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:11:39+00:00Added an answer on June 13, 2026 at 8:11 am

    Combined with a scheduling table suggested above, you can use the following to send a report via TSQL, using @report_path as your parameter:

    SELECT 'exec ReportServer.dbo.AddEvent @EventType=''TimedSubscription'', 
                 @EventData=''' + CONVERT(VARCHAR(max), rs.SubscriptionID) + ''''
    FROM   ReportServer.dbo.Catalog c,
           ReportServer.dbo.ReportSchedule rs,
           ReportServer.dbo.Schedule s
    WHERE      rs.ReportID = c.ItemID
           AND rs.ScheduleID = s.ScheduleID
           AND c.path = @report_path
           AND s.RecurrenceType = 1 -- only the ones with the regular scheduling disabled
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data driven subscription which each time it runs shows a pending
I have a report that uses User!UserID. But Data Driven Subscription cannot be created
We have a data driven ASP.NET website which has been written using the standard
I have a main loop which is fully data-driven: it has a blocking call
I am trying to set up a data driven subscription to an SSRS report.
I have a mobile app, which is pretty data driven, though only through text
What are the difference between subscription and data driven subscription in SSRS?I have read
I have data from travel diaries which has been read in from a csv
I have a data driven form generated on the fly from a database. The
I have built a data driven model by dragging my tables onto the empty

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.