Welcome to Sign in | Help

Re: Search a custom text inside store procedures

  •  08-31-2009, 4:41 PM

    Re: Search a custom text inside store procedures

    Puteti folosi ca model urmatorul script:

    USE AdventureWorks;
    GO
    SELECT
    [name],
    OBJECT_DEFINITION(object_id) [procedure_text]
    FROM sys.procedures
    WHERE patindex(N'%@StartProductID%',OBJECT_DEFINITION(object_id)) > 0


    Cristian Andrei Lefter, SQL Server MVP
    MCT, MCSA, MCDBA, MCAD, MCSD .NET,
    MCTS, MCITP - Database Administrator SQL Server 2005
    http://sqlserver.ro
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems