Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to Search a Text into a Database objects

How to Search a Text into a Database objects

Scheduled Pinned Locked Moved Database
sharepointdatabasetutorial
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ravindra Bisen
    wrote on last edited by
    #1

    Hi I have to search a string into a database object. the string can be a part of SP or Function or any other sys object. Thanks in Advance

    D R Richard DeemingR 3 Replies Last reply
    0
    • R Ravindra Bisen

      Hi I have to search a string into a database object. the string can be a part of SP or Function or any other sys object. Thanks in Advance

      D Offline
      D Offline
      Developer Vaibhav
      wrote on last edited by
      #2

      SELECT DISTINCT so.name
      FROM syscomments sc
      INNER JOIN sysobjects so ON sc.id=so.id
      WHERE sc.TEXT LIKE '%Employee%'

      Vaibhav

      R 1 Reply Last reply
      0
      • D Developer Vaibhav

        SELECT DISTINCT so.name
        FROM syscomments sc
        INNER JOIN sysobjects so ON sc.id=so.id
        WHERE sc.TEXT LIKE '%Employee%'

        Vaibhav

        R Offline
        R Offline
        Ravindra Bisen
        wrote on last edited by
        #3

        Thanks Vaibhav... Will it work for SQL 2005

        D 1 Reply Last reply
        0
        • R Ravindra Bisen

          Thanks Vaibhav... Will it work for SQL 2005

          D Offline
          D Offline
          Developer Vaibhav
          wrote on last edited by
          #4

          I am not sure :) Please check.

          Vaibhav

          1 Reply Last reply
          0
          • R Ravindra Bisen

            Hi I have to search a string into a database object. the string can be a part of SP or Function or any other sys object. Thanks in Advance

            R Offline
            R Offline
            Ravindra Bisen
            wrote on last edited by
            #5

            Hi I found.. SELECT * FROM all_source WHERE Lower(text) LIKE '%reportid%' this will work for Oracle

            1 Reply Last reply
            0
            • R Ravindra Bisen

              Hi I have to search a string into a database object. the string can be a part of SP or Function or any other sys object. Thanks in Advance

              Richard DeemingR Offline
              Richard DeemingR Offline
              Richard Deeming
              wrote on last edited by
              #6

              If you have to do this sort of thing regularly, you might want to look at SQL Search[^]. It's free at the moment, although they might decide to charge for future versions.


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups