furmangg

I'm using an SqlDependency so I'll get an alert when the data under a query changes. When the query does not meet the criteria spelled out here http://msdn2.microsoft.com/en-us/library/aewzkxxh.aspx then I immediately get a SqlNotificationEventArgs event with the "Invalid" note. This is good.

I would like to know that a query is invalid before I try it with my ASP.NET application. Is there a sproc I can give to my SQL developers so they can test that they haven't used any stuff that would invalidate SqlDependency What I'm hoping is that there's already a system sproc which could be called...

exec sp_QueryInvalidForNotification "exec myTestSproc 99"

Does such a sproc exist Or does anyone know how to write one




Re: .NET Framework Data Access and Storage sproc to determine if query will produce Invalid SqlNotificationEventArgs event

Peter Gvozdjak - MSFT

Moving to the .NET Framework Data Access and Storage forum since this uses managed code.




Re: .NET Framework Data Access and Storage sproc to determine if query will produce Invalid SqlNotificationEventArgs event

furmangg

I disagree with your assessment of the topic of this question. I'm asking for a SQL Server stored proc related to query notifications and service broker. I should have posted this in the Service Broker forum... and now I've done that:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1201846&SiteID=1&mode=1

Feel free to delete this thread.