Results 1 to 4 of 4

Thread: Easy (Maybe)

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    32

    Talking

    Is there a way to do a find on all stored procedures for text found within the stored procedure?

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    What ?

    - jamie
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Guest
    Code:
    SELECT name
    FROM sysobjects
    WHERE xtype='p'
    AND name LIKE '%';
    On the last line of SQL query substitute % for the text you are searching for. (% is a wild card...like * in DOS) This will return all stored procedures in the current database with names like you have specified.

    I'm still workin on how to search the text contained within them...

  4. #4
    Guest
    Nah...I don't know where the stored procedures (or rather the text contained within them) is stored... so you'll just have to do with searching their names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width