A method of generating an SQL script for at least one object reference in a relational database, the method comprising: receiving at least one object reference relating to objects that are to be scripted for the relational database; detecting relational dependencies of the at least one object reference based on dependency data and instance data, wherein the dependency data is located via dependencies retrievable form a server or system catalog and is defined as information concerning relationships between the objects, and wherein the instance data are metadata; as the relational dependencies are detected, constructing a hierarchical object tree representing the dependency data and the related objects, wherein the constructing comprises eliminating duplicate object references and entering non-duplicated object references and associated metadata into the hierarchical object tree, while the relational dependencies are being detected, testing if the hierarchical object tree is completed, if not, allowing editing of the objects, if no editing is requested, moving to the next object reference and continuing detecting the relational dependencies, if editing is requested, editing the hierarchical object tree, and after editing is completed, moving to the next object and continuing detecting the relational dependencies, when the hierarchical object tree is completed, making the hierarchical object tree available as an output to a subsequent process; deriving a dependency list from the hierarchal object tree based on the detected relational dependencies by a dependency walk, the deriving comprising receiving the hierarchical object tree as an input, detecting relational dependencies derived from the hierarchal object tree, and as these relational dependencies are detected, generating the dependency list; making the dependency list available to a user program, wherein the dependency list is editable by the user program and wherein the dependency list is a linear list which lists an order in which an object should be created in order to satisfy dependency constraints; and generating the SQL script responsive to the dependency list, wherein the SQL script is used to deploy relational database objects in a given target database. receiving at least one object reference relating to objects that are to be scripted for the relational database; detecting relational dependencies of the at least one object reference based on dependency data and instance data, wherein the dependency data is located via dependencies retrievable form a server or system catalog and is defined as information concerning relationships between the objects, and wherein the instance data are metadata; as the relational dependencies are detected, constructing a hierarchical object tree representing the dependency data and the related objects, wherein the constructing comprises eliminating duplicate object references and entering non-duplicated object references and associated metadata into the hierarchical object tree, while the relational dependencies are being detected, testing if the hierarchical object tree is completed, if not, allowing editing of the objects, if no editing is requested, moving to the next object reference and continuing detecting the relational dependencies, if editing is requested, editing the hierarchical object tree, and after editing is completed, moving to the next object and continuing detecting the relational dependencies, when the hierarchical object tree is completed, making the hierarchical object tree available as an output to a subsequent process; if not, allowing editing of the objects, if no editing is requested, moving to the next object reference and continuing detecting the relational dependencies, if editing is requested, editing the hierarchical object tree, and after editing is completed, moving to the next object and continuing detecting the relational dependencies, if no editing is requested, moving to the next object reference and continuing detecting the relational dependencies, if editing is requested, editing the hierarchical object tree, and after editing is completed, moving to the next object and continuing detecting the relational dependencies, when the hierarchical object tree is completed, making the hierarchical object tree available as an output to a subsequent process; deriving a dependency list from the hierarchal object tree based on the detected relational dependencies by a dependency walk, the deriving comprising receiving the hierarchical object tree as an input, detecting relational dependencies derived from the hierarchal object tree, and as these relational dependencies are detected, generating the dependency list; making the dependency list available to a user program, wherein the dependency list is editable by the user program and wherein the dependency list is a linear list which lists an order in which an object should be created in order to satisfy dependency constraints; and generating the SQL script responsive to the dependency list, wherein the SQL script is used to deploy relational database objects in a given target database.