Report Server Web Service: Connecting Subscription to schedule - c#

I'm currently in the process of developing a front facing ASP application for a client which is wired up to the ReportService2010.asmx web service. We are using SQL Server 2008 R2.
I have figured out how to fetch all schedules and create them on our end through the interface, but I can't figure out how to then create a subscription that is then connected to that schedule so that it runs at the time.
Can someone help me please?

In the end I found that unless some custom assemblies are added to the report server, subscriptions do not connect to schedules and are two different things.

Related

Windows Server 2012 Service to restart application

I am trying to upgrade a server from Windows Server 2003 to Windows Server 2012 and I have a service that restarts an application that needs to be updated, which must be always running in order for it to get its job done propperly (summarizing is an application that reads data sent from several sensors and stores it in a database).
The thing is, Microsoft changed the way services work and it won't work properly in the new server.
Is there a way to keep doing it with a service even if it needs to be done within a user session?
Thanks in advance.

Communication between Client and Server running on two different machines in C# using Visual studio 2010

i need Communication between Client and Server running on two different machines in C# using Visual studio 2010
The main app that is the client app needs to tell the server app on the server to start and stop process. and server app needs to tell the main client app when process has been completed and also of any errors
please give me some suggestion , what is best to use for my application .
The easier form of doing that, I would think on having a database in the middle for communication between the client app and the server.
On the server you would have a service on continuous running, and querying the DB if he should start the process (code) or not. The server will mark that task as Started, and when it finished, it would mark Finished. The client, only need to add new records to a table where the server will look for.

not able to perform multitasking in linq to sql data context

I have Windows Service which will handle JOBs posted via web sites, user can request long running job to WS. WS will pick that job and do necessary calculation with data and update the data into database. The number of record update more than 15 lacks.
So the issue is if the JOB is running via WS and same time if you try to access the website or if you try to perform any operation on the page it will show lodging page till the WS will finish the task.
The Web Application & WS is using common database via LINQ to SQL DBML. The Data Access layer is separate class library and referred by WS and Web Application. The database is in SQL Server 2008 R2
I am not able to find the root cause of the above.
Please help on this
By mistake I have made DataContext object as static.
DataContext object never be static.

continously running thread in asp.net web application

i want a continously running thread in my web application for sending mail to admin if the logged complaint of the user in not solved by technician within 24 hours.
i am able to send mail to administrator
i just want a watch on database for unsolved issues with timespan of more than 24 hours and inform to administrator about the same
how can i perform it. any ideas
Create an aspx page/asmx service to check the database and send email providing appropriate check in the page/service. This page/service can then be called using PowerShell script on the server, and that powershell script can be scheduled to run in task schedular using specified intervals. Hope this shall acheive what you wants.
The right way to do it would be to write a Windows Service which will monitor the database and send emails out.
If your asp.net web application uses sql server, which i imagine it does, i would reccomend creating a sql agent job which executes some sql with the business logic you desire, and sends emails using the built in sql server email sending functionality
SQL Server Agent Mail
1) Windows service which will monitor the table
2) SQL Job

How SharePoint Timer Service 'OWSTimer' Works?

In our application, we need to build something similar to SharePoint timer service. This service needs to be installed on all web servers in a farm. A job can be scheduled to be run immidiately, daily, weekly or monthly on any or all web servers of the farm. Jobs configuration and schedule is stored in database (MS SQL 2008).
How SharePoint timer service executes these jobs exactly at the scheduled times?
Does it get notified by SQL Server? (Notification services not available in SQl Express)
Does it poll SQL Server after specific intervals to find if any job needs execution? (Does not guarantee precision.)
Or what?
I would recommend that you use an existing framework
http://quartznet.sourceforge.net/
https://stackoverflow.com/questions/tagged/quartz.net

Categories

Resources