1. A method of generating a script for at least one object reference in a relational database, the method comprising: receiving at least one object reference to be scripted for the relational database; detecting relational dependencies of the at least one object reference; constructing a hierarchical object tree comprising the at least one object reference; deriving a dependency list from the hierarchal object tree based on the detected relational dependencies; and generating a script responsive to the dependency list.