Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As other people have said, start off with each stored proc in a separated text file that is under source control. Write a script that deletes all you stored procedures then re-creates them from the text files (while logging/reporting any errors) – this script should be easy to run. Then every time you update from source control rerun the script. All edits to stored procedures should be done to the text file, not the “live” copy on your local database otherwise you will loose changes when you do a update.</p> <p>You will soon want someway of auditing your database schema and creating upgrade scripts etc.</p> <p>If you are only using SQL server then consider <a href="http://www.red-gate.com/products/SQL_Compare/index.htm" rel="nofollow noreferrer">SQL Compare</a> from <a href="http://www.red-gate.com/" rel="nofollow noreferrer">Reg-Gate</a>. I think it will compare stored procs (and other sql) in a text file with what is in your database and sync the two. So letting you use the editing tools in SqlServer to edit the live stored procedures.</p> <p>(As of the end of 2009, Red-Gate is just about to ship <a href="http://www.red-gate.com/products/schema_compare_for_oracle/index.htm" rel="nofollow noreferrer">Sql Compare for Oracle</a>)</p> <p>I have been told that ApexSQL's <a href="http://www.apexsql.com/sql_tools_diff.asp" rel="nofollow noreferrer">Diff</a> tool is another option instead of Sql Compare, ApexSQL's <a href="http://www.apexsql.com/sql_tools_edit.asp" rel="nofollow noreferrer">Edit</a> claims to provide source control integration.</p> <p>At the high-end consider Visual Studio Team System Database Edition, however it costs a lot, then you may have to pay even more for Oracle support from a 3rd party. But if you are a Microsoft partner (or can become one) you may get some copes very cheaply.</p> <p><a href="https://stackoverflow.com/questions/115369">See also Do you source control your databases?</a> on StackOverflow for a good set of answers on the bigger problem.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload