SQL IF EXISTS Command Error
Hi Guys
After doing much research I still cannot get this IF EXISTS sql command to work, the Thing that this SQL Command service runs from is connected to an SQL Database called ThingWorx and a table called CEN_ThingWorx:
Line 1: Use ThingWorx;
Line 2: IF EXISTS (SELECT * FROM CEN_ThingWorx WHERE Thing='TestThing')
Line 3: BEGIN
Line 4: UPDATE CEN_ThingWorx SET (StringColumn='newString') WHERE Thing='TestThing'
Line 5: END
There is a column called StringColumn and there is a Thing column with a value 'TestThing'.
However I keep getting errors and any error checker I put this into online returns Line 2 being at fault but it could be other things I'm not sure can anyone help please?

