Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9271689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:40:56+00:00 2026-06-18T15:40:56+00:00

We are bringing our db under version control. We have around 2400 object out

  • 0

We are bringing our db under version control. We have around 2400 object out of which most are stored procedures.

So we have made drop if does not exist create scripts for all our objects except tables.

We are maintaining the table scripts in a separate folder in which the delta scripts are stored. Only the delta scripts are numbered. Other scripts relating to procedures, views and functions are to be run directly.

So when the developer commits the change in the svn we want to run them on a staging release. The problem is the dependency of objects.

If a developer commits several scripts in one commit which may be dependent on each other or if we want to merge several revisions and then run scripts combined then we are not able to determine the correct order of running the scripts.

Can anyone suggest some good way to manage the dependency and help us to make sure the scripts run the first time itself.

We can not use redgate tools in so many of our production servers so I would appreciate some other alternative than using sql compare or sql sourcecontrol.

We would always run the table delta scripts first since they would not be dependent on other objects (the dev would have also managed it in the script) and then the other objects

We have come out with a few workarounds for sequence of running other objects like

1) We can store the dependency of the objects in another file with same name but different extension so that if the dependency changes then the developer should commit it with the script. We can then make a tree according to which we can run the script.

2) We can create a tree first then commit it in the svn if the dependency changes then we can add it in the tree after the scripts are tested on the staging machine and error occurs.(This would require a svn commit after the first fail and requires that the first time the automated process fails)

3) We can run the scripts again and again without using transactions a maximum of the number times as is the number of objects. This would lead to running of all the scripts correctly at the end assuming the worst case scenario.

If you have some other ideas or can improve some of these ideas then please contribute.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:40:57+00:00Added an answer on June 18, 2026 at 3:40 pm

    If you can’t use any other kind of automation, you can probably use tsort. The tsort utility is a Unix program that implements a topological sort. (It’s probably available for most operating systems.) It outputs a full, total ordering of strings based on input that shows partial ordering.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In one of our service classes I have a bunch of methods which just
Our company has been thinking about scrapping our interview procedures and bringing each candidate
Are there any other methods of bringing a control to the front other than
We're bringing some of our web development in-house and one of my goals is
So I have a form that lets a user create a new team. Our
Sry for bringing this question again as its most common solution would be to
We're bringing in outside content to our existing site along with its associated external
I have been given the task of bringing three legacy systems together into one
Basically I have a foreach loop bringing in data from an array of products
I have a Spring map problem that is bringing me to tears. My spring

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.