troubleshooting Question

sql trigger unscribption problem string manipulation

Avatar of AFIF JABBADO
AFIF JABBADOFlag for United States of America asked on
Microsoft SQL Server
2 Comments1 Solution320 ViewsLast Modified:
i have a messsage sent from a mobile user ..
when he send to me a msg  "u 1" unsubscribe service 1 to user...
and u 2 unsubscribe service 2 to user after

                        IF @message IN ('unsubscribe', 'u')
                        BEGIN                              
                              -- Deactivate all accounts
                              -- The user account is active, deactivate it
                              UPDATE subscriptions SET subscriptions.active = 0  WHERE msisdn = @msisdn

END

the @ message maybe it's : "how are you"  and "u" is on message ?
so what is the solution ?? i use regular expression..

so how i can solve it because i have many services and each one is related to numbers
so ???

if message is "u X" where x is a service code number
ASKER CERTIFIED SOLUTION
Member_2_861731

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros