views:

43

answers:

1

Hi Folks,

I was wondering if it’s possible to make a call to an IIS AppPool from a SQL Server Job (2005). I am basically looking to have a job monitor a table for an event and if a condition is fired I want to call IIS and shutdown a specific AppPool.

I presume I can do this thru the CLR and .NET from the SQL Server Job but wondered was there an easier way/better way to approach this?

Cheers, Conor

A: 

Can you use an SQLDependency from your Gloal.asax to have SQL Server notify your application when your event occurs.

You can then shutdown the AppPool from your application rather than from SQL Server

Greg B