SUBSTRING('Electronic Payment Successful.; -- Transaction Id <P291118333151428004>; Card <1272>; Amt <$118.00>; Date <11/29/2018 3:14:27 PM>; Vendor Name <TSYS>; Status Code<1> ;Status Description <Transaction Approved>; Response Code<00> ;Response Description <Approved>; Approval Code <121041>; Processor TransId <4401919651>;',53,19)
Gives me the following error:
Msg 102, Level 15, State 1, Line 3 Incorrect syntax near '%Electronic Payment Successful.; -- Transaction Id ; Card <1272>; Amt ; Date <11/29/2018