Viewing post 1 (of 1 total)
The prepared always seem to be luckier
DECLARE @search varchar(100)
SET @search = '%sysobject%'
SELECT
OBJECT_NAME(id) AS ProcName,
SUBSTRING(text, PATINDEX(@search, text) - 100, 200)...
March 25, 2005 at 2:28 pm
#549011