01-11-05 10:53 PM
Use SQLProfiler to check the SQL that is getting run. If I remember right,
the NOT operator does not work like you think it will with this type of
check against SQL. I had to do some work around to check this by
encapsulating the check in a .Net class. I think this is the same type of
thing I was doing, but not sure.
matt
"Chris" <cahale@shellopus.com> wrote in message
news:OsrNT0C%23EHA.3120@TK2MSFTNGP12.phx.gbl...
>I need to determine if a particular value in an XML element is NOT in a
> table in our SQL Server Database.
>
> In this case, I need to determine if a profit center is in our database,
> and
> if it isn't, I need to set an XML element value to "false."
>
> The business rule I created looks like the following:
>
> IF
> NOT
> AND
> XREFTable.PROFIT_CENTER_ID is equal to
> [namespace]./Invoice/ProfitCenter
> XREFTable.CLIENT_ID is equal to 'PRL300'
>
>
> THEN
> [namespace]./Invoice/ProfitCenterValid = 'False'
>
>
> When I test this rule, the rules engine locks up on me. Is there
> something
> I am unaware of?
>
> Chris
>
>
>
>
[ Post a follow-up to this message ]
|