SQL Server Developer Center > SQL Server Forums > SQL Service Broker > SQL Service Broker Problem with date
Ask a questionAsk a question
 

QuestionSQL Service Broker Problem with date

  • Thursday, March 26, 2009 2:40 PMdebuging Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi All


    I use the SQL Service Broker to notify me when a row is inserted in a SQL table.

    The SqlDependency command text as follwing

    SELECT Email from dbo.CEM where Date_CEM = '1/20/2008 12:00:00 AM'

    As you see there is a column its datatype is datetime (Date_CEM), when I am using a select statement same as shown I am having a problem, which is : SqlDependency onchange event is invoked continuously and cannot be stopped wherever the value of the Email column is changed or not, but when I tried to use another select statement that not contains a datetime column in the condition the event is invoked correctly (only when the value is changed of the Email column)

    Can anybody help me

All Replies