Replacing Strings in Your Output May 31, 2018 declare @SQL VARCHAR(MAX) = ‘String to Replace’set @SQL = REPLACE(@SQL, ‘)’, ‘Replacement String’)select @SQL