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. modify system stored procedures?

modify system stored procedures?

Scheduled Pinned Locked Moved Database
sharepointdatabasesql-serversysadminquestion
11 Posts 2 Posters 1 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
    Rene De La Garza
    wrote on last edited by
    #1

    is there a way to hook on system stored procedures or replace it, i want to hook or replace sp_who2, is there a way?, im using sql server 2000

    R 1 Reply Last reply
    0
    • R Rene De La Garza

      is there a way to hook on system stored procedures or replace it, i want to hook or replace sp_who2, is there a way?, im using sql server 2000

      R Offline
      R Offline
      Rein Hillmann
      wrote on last edited by
      #2

      This is NOT recommended since other users might rely on the system stored procedure for correct functionality. However, you can replace them by going into the master database, dropping the procedure and then recreating it.

      R 2 Replies Last reply
      0
      • R Rein Hillmann

        This is NOT recommended since other users might rely on the system stored procedure for correct functionality. However, you can replace them by going into the master database, dropping the procedure and then recreating it.

        R Offline
        R Offline
        Rene De La Garza
        wrote on last edited by
        #3

        thanks let me try it "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

        1 Reply Last reply
        0
        • R Rein Hillmann

          This is NOT recommended since other users might rely on the system stored procedure for correct functionality. However, you can replace them by going into the master database, dropping the procedure and then recreating it.

          R Offline
          R Offline
          Rene De La Garza
          wrote on last edited by
          #4

          but i cant drop it i get an error :( "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

          R 2 Replies Last reply
          0
          • R Rene De La Garza

            but i cant drop it i get an error :( "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

            R Offline
            R Offline
            Rein Hillmann
            wrote on last edited by
            #5

            What's the error?

            1 Reply Last reply
            0
            • R Rene De La Garza

              but i cant drop it i get an error :( "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

              R Offline
              R Offline
              Rein Hillmann
              wrote on last edited by
              #6

              ok sorry.. forgot to tell you.. you need to perform the following steps first to enable changing of system stored procedures: execute sp_configure 'allow updates',1 go reconfigure with override go Once you are done, set allow updates to 0: execute sp_configure 'allow updates',0 go reconfigure with override go You do know that this is highly unsupported and not recommended.. :)

              R 1 Reply Last reply
              0
              • R Rein Hillmann

                ok sorry.. forgot to tell you.. you need to perform the following steps first to enable changing of system stored procedures: execute sp_configure 'allow updates',1 go reconfigure with override go Once you are done, set allow updates to 0: execute sp_configure 'allow updates',0 go reconfigure with override go You do know that this is highly unsupported and not recommended.. :)

                R Offline
                R Offline
                Rene De La Garza
                wrote on last edited by
                #7

                still doesn`t work i dont know why, any other idea?, thanx for the help :). "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

                R 1 Reply Last reply
                0
                • R Rene De La Garza

                  still doesn`t work i dont know why, any other idea?, thanx for the help :). "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

                  R Offline
                  R Offline
                  Rein Hillmann
                  wrote on last edited by
                  #8

                  Please tell me what error you are getting.

                  R 1 Reply Last reply
                  0
                  • R Rein Hillmann

                    Please tell me what error you are getting.

                    R Offline
                    R Offline
                    Rene De La Garza
                    wrote on last edited by
                    #9

                    i get a messagebox telling me that i cant erease system objects, im trying to delete sp_who from master database. "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

                    R 1 Reply Last reply
                    0
                    • R Rene De La Garza

                      i get a messagebox telling me that i cant erease system objects, im trying to delete sp_who from master database. "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

                      R Offline
                      R Offline
                      Rein Hillmann
                      wrote on last edited by
                      #10

                      You need to perform the entire query with T-SQL as follows: use master go execute sp_configure 'allow updates',1 go reconfigure with override go drop procedure sp_who go execute sp_configure 'allow updates',0 go reconfigure with override go

                      R 1 Reply Last reply
                      0
                      • R Rein Hillmann

                        You need to perform the entire query with T-SQL as follows: use master go execute sp_configure 'allow updates',1 go reconfigure with override go drop procedure sp_who go execute sp_configure 'allow updates',0 go reconfigure with override go

                        R Offline
                        R Offline
                        Rene De La Garza
                        wrote on last edited by
                        #11

                        thanks that worked :-D, thanks for your help. "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

                        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