Viewing 3 posts - 31 through 33 (of 33 total)
If you're using SQL Server 2005, wouldn't you do better to search sys.sql_modules? That's the replacement for syscomments. The definition column holds all the sql definitions, and is nvarchar(max).
I imagine...
January 22, 2007 at 1:52 pm
Yeah, the likelyhood of specific search string spanning multiple blocks isn't high, but it can happen. Syscomments.text is nvarchar(4000), so it's easy to span multiple segments. We use Nice-Large-Comment-Blocks at...
January 3, 2007 at 4:02 pm
Well, if you're running SQL Server 2005, you can query sys.sql_modules instead. Something like the code below works well, because sys.sql_modules is varchar(max).
-- This query returns the Name of the object, and it's entire definition
select...
January 3, 2007 at 2:58 pm
Viewing 3 posts - 31 through 33 (of 33 total)