Forum Replies Created

Viewing 3 posts - 31 through 33 (of 33 total)

  • RE: Searching Syscomments Accurately

    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...

  • RE: list User Stored Procedures that reference a specified table

    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...

  • RE: list User Stored Procedures that reference a specified table

    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...

Viewing 3 posts - 31 through 33 (of 33 total)