T-SQL Between Dates Confusion

A date is a point in time, not a time span. ’12/31/2010′ is a point, too. Namely, it’s the midnight of the 31st of December. Everything that happened after this point is ignored. That’s exactly the behaviour you want (even if you haven’t realised that yet). Do not think that when you choose to omit … Read more

How to monitor SQL Server Agent Job info in C#

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 GetJobsAndStatus() { string sqlJobQuery = “select j.job_id, j.name, j.enabled, jh.run_status,” + ” js.last_outcome_message, jh.run_date, jh.step_name, jh.run_time” + ” from sysjobs j left join sysjobhistory jh on (j.job_id … Read more