What is the best way to store data base source code in Perforce?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DashaK
    New Member
    • Oct 2007
    • 3

    What is the best way to store data base source code in Perforce?

    I am a data base developer. I have to implement SCM system in my department which is Perforce. Our oracle developers never used source control systems before. Does anyone manage oracle schema by putting it in Perforce?
    Source control products are designed for source code, not for databases. They work on line-by-line differences in the code.
    When a database developer needs to revert to an earlier version of an object, such as a view or stored procedure, the entire database must be considered, to account for dependencies. Unfortunately, using a source control product, the developer would see only the line-by-line differences in the SQL script for the particular object. There would be no cross-referencing to dependencies.

    If it's a Perforce, what's the best way to do it? Or, probably, there is something else? Please help.
    Last edited by DashaK; Oct 10 '07, 10:52 PM. Reason: changing the title
  • amitpatel66
    Recognized Expert Top Contributor
    • Mar 2007
    • 2358

    #2
    Originally posted by DashaK
    I am a data base developer. I have to implement SCM system in my department which is Perforce. Our oracle developers never used source control systems before. Does anyone manage oracle schema by putting it in Perforce?
    Source control products are designed for source code, not for databases. They work on line-by-line differences in the code.
    When a database developer needs to revert to an earlier version of an object, such as a view or stored procedure, the entire database must be considered, to account for dependencies. Unfortunately, using a source control product, the developer would see only the line-by-line differences in the SQL script for the particular object. There would be no cross-referencing to dependencies.

    If it's a Perforce, what's the best way to do it? Or, probably, there is something else? Please help.
    Check with DBDIFF command
    For more on DBDIFF check here

    Comment

    • DashaK
      New Member
      • Oct 2007
      • 3

      #3
      Thank you, I'll check this out. Does this product work as a safe source control as well or only as a comparison?

      Comment

      • amitpatel66
        Recognized Expert Top Contributor
        • Mar 2007
        • 2358

        #4
        Originally posted by DashaK
        Thank you, I'll check this out. Does this product work as a safe source control as well or only as a comparison?
        Dasha,

        This command will be used for comparison between two different databases.
        For more detail on this command, you can check out the link that I have provided.

        Comment

        • DashaK
          New Member
          • Oct 2007
          • 3

          #5
          Thanks a lot for your help!

          Comment

          Working...