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. Copy stored procedures to another database why not?

Copy stored procedures to another database why not?

Scheduled Pinned Locked Moved Database
databasequestion
4 Posts 2 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.
  • U Offline
    U Offline
    User 2456424
    wrote on last edited by
    #1

    assuming you have 2 SQL2005 database: data1 and data2, I Copy stored procedures from data2 to data1 why not? I want to copy stored procedures through other databases you do?

    M 1 Reply Last reply
    0
    • U User 2456424

      assuming you have 2 SQL2005 database: data1 and data2, I Copy stored procedures from data2 to data1 why not? I want to copy stored procedures through other databases you do?

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      I assume each database has the same table structure so the stored procedure will actually work! You need to create a script of the stored proc and run the script in each database. Using SSMS right click on the procedure and script as create to a new query window. Then change databases and run the script. Lean how to use the Management Studio!

      Never underestimate the power of human stupidity RAH

      U 1 Reply Last reply
      0
      • M Mycroft Holmes

        I assume each database has the same table structure so the stored procedure will actually work! You need to create a script of the stored proc and run the script in each database. Using SSMS right click on the procedure and script as create to a new query window. Then change databases and run the script. Lean how to use the Management Studio!

        Never underestimate the power of human stupidity RAH

        U Offline
        U Offline
        User 2456424
        wrote on last edited by
        #3

        I do not want to create new, I want to Copy stored procedures to another database and to quickly change their

        M 1 Reply Last reply
        0
        • U User 2456424

          I do not want to create new, I want to Copy stored procedures to another database and to quickly change their

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          Which just reinforces my comment on the above thread, you have no idea what you are doing, get a book and do some reading on how databases work.

          Never underestimate the power of human stupidity RAH

          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