This is an old revision of the document!
Once a database has been used with Versago, the database name can be changed, but it will take some effort. The databses cannot simply be renamed in SQL as there are internal references in the application that must be updated as well. The process will require a complete reinstallation of Versago, so this situation should be avoided if at all possible.
The most common scenario for renaming databases is when the source databases were named for “test,” and now need to be renamed for production use. In this example we will rename the Versago Common and Versgo Data databases. The current database names are “vgoCommonTest” and “VersagoDataTest” respectively. They will be renamed “vgoCommon” and VersagoData.“
Following are the steps to follow if the renaming needs to be done.
Creating database backups is essential so that you have a fallback if the rest of the process does not work as expected. If there is an issue and you need to roll back to the previous version, Third Wave will not be able to help you without these backups.
* Continue through the installation process as if this is a new installation.
The following SQL commands can be used as further confirmation that the connections have been updated. Check the connection names to be sure the reflect the correct target database. If any of the connections still point to the original database, export the specific objects and reimport it.
For Reports
SELECT t0.ReportName, t0.CompanyID, t1.CompanyName FROM twbs_ws_orpt t0 INNER JOIN twbs_ws_ocmp t1 ON t0.CompanyID = t1.CompanyID ORDER BY t1CompanyName, t0.ReportName
For Forms
SELECT DISTINCT t2.FormName, t2.CompanyID, t3.CompanyName FROM TWBS_WS_FormControls t0 INNER JOIN TWBS_WS_FormSections t1 ON t0.FormSectionID = t1.FormSectionID INNER JOIN TWBS_WS_FormMaster t2 ON t1.FormID = t2.FormID INNER JOIN twbs_ws_ocmp t3 ON t2.CompanyID = t3.CompanyID ORDER BY t3.CompanyName, t2.FormName