Solved

Scheduled reports -  sending via .Net 4.5, sql or Windows scheduled task?

Posted on 2014-03-21
3
244 Views
Last Modified: 2014-03-27
My Web app has the ability to generate reports

Now I want to schedule some reports,  I. E send at a certain time (configured by user)  every day

The usual way I know of is to write a console app and run it as a scheduled task

However I was doing that 10 years ago
Is there anything in. Net 4.5 or. Sql server that can automatically hit a Web service to generate the reports?
0
Comment
Question by:websss
  • 2
3 Comments
 
LVL 13

Expert Comment

by:devlab2012
ID: 39946984
There is in-built functionality in reporting services. You can use report subscriptions. Here is a link for details:

http://technet.microsoft.com/en-us/library/cc872783.aspx
0
 

Author Comment

by:websss
ID: 39949635
Thanks
but i'm using telerik reporting which has .net code that is needed to run in order to send the reports
0
 
LVL 13

Accepted Solution

by:
devlab2012 earned 500 total points
ID: 39950984
Instead of creating a console application, you can achieve the same thing by creating a simple web page and a small vbs file. Here are step by step instructions:

1. Create a normal web page that will generate and send the reports. Write all the code in Page_Load as this page will not be used by a user, instead it will be called through code.

2. Create a vbs file to call this page. Use the complete url of the page in the vbs file.

3. Run the vbs file at a scheduled time using Windows Task Scheduler.

Here is a complete tutorial of creating vbs files to run a web page:

http://www.orcsweb.com/blog/using-task-scheduler-and-a-vbs-file-to-request-a-web-page-on-a-scheduled-basis/
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question