troubleshooting Question

trigger on insert to update column if contain top 2012 and replace by top 2013

AFIF JABBADOFlag for United States of America asked on
Microsoft SQL ServerMicrosoft SQL Server 2005Microsoft SQL Server 2008
2 Comments1 Solution337 ViewsLast Modified:
i have the following table

/****** Script for SelectTopNRows command from SSMS  ******/
SELECT TOP 1000 [ActionId]
  FROM [HITV_Filtration].[TvUser].[Sendsms]
  where Text like '%top5 2012%'
  order by actionid desc

i want to replace each new record inserted in [HITV_Filtration].[TvUser].[Sendsms]
contain '%top5 2012%' and replace only the top5 2012 by top5 2013

the Text is like : vote to 23232 for top5 2012  XXXX
it should be replacd by vote to 23232 for top5 2012 XXX

??? i should care on update the primarykey is actionid

please can anyone help me on write this function
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
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