sql-server-agent

How to monitor SQL Server Agent Job info in C#

此生再无相见时 提交于 2019-11-27 08:57:55
I need to create an application for monitoring SQL Server 2000 Agent Job status and info when Job occur same as show on Windows application event log. Now I connect to the database already via a connection string, but I don't know how to get the status and info from Job. I need to show status and info on Textbox. What do you suggestion how to do. Developer tools : MS SQL Sever 2000 SP4 MS Visual Studio 2008 (C#) I am a rookie programmer. i can do this already... i select form table "Sysjobserver" in database "msdb" for read status, date, time of job that i want. use this code public void

Executing the same SSIS Package with different parameters at different time

末鹿安然 提交于 2019-11-26 18:22:26
问题 I have a SSIS package running at 8 PM in the evening for the Year 2011. I would like to run the same package at 8:30 PM for the Year 2010. I made a SSIS Package configuration file and accept the "Year" as a parameter. Whenever I run, I need to open a file, change the value and run it. Is it possible to set up the schedule and set the Year value dynamically? Or using 2 different configuration file is the only way to solve it? Thanks all. 回答1: The challenge with using a configuration file