One of our developers accidently deleted a repository. Unfortunatly, it was not until several days later that he noticed that he needed the repository.
I have restored a database copy from the night before the deletion and its sitting on my sql server. Is there a way to point my Vault Client to point to the other database so he can check to see whats missing?
If I can't do that, my other option would be to rename the current vault database and drop in the restored version. Then reverse the process when complete.
Any other suggestions?
Pete Miller
Sr. Database Administrator
Restore of Vault Database
Moderator: SourceGear
Do you have both databases on the same instance of SQL Server? Have you renamed one of them?
The Vault Client doesn't connect directly to a database; it's the Vault Server that actually makes the connection. You might be able to modify the connection string in the Vault Service web.config file to point to the backup.
Another possibility is to temporarily restore the database to another machine and install Vault on that machine, pointing it to the database.
The Vault Client doesn't connect directly to a database; it's the Vault Server that actually makes the connection. You might be able to modify the connection string in the Vault Service web.config file to point to the backup.
Another possibility is to temporarily restore the database to another machine and install Vault on that machine, pointing it to the database.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
-
- Posts: 2
- Joined: Wed Sep 28, 2005 2:48 pm
The database name is in Web.config in the app setting section at the end of the config file. Edit the connect string which is not commented out:
<appSettings>
<add key="ConfigPath" value="C:\Inetpub\wwwroot\VaultService\Vault.config" />
<!-- SQLSERVERMODE-add key="ConnectString" value="Application Name='SourceGear Vault Server'; Connection Reset='true'; Server=server; Database=sgvault; User ID=UUUUUUUU; pwd=PPPPPPPP" />SQLSERVERMODE- -->
<add key="ConnectString" value="Application Name='SourceGear Vault Server'; Connection Reset='true'; Server=server; Database=sgvault; Integrated Security='true'" />
</appSettings>
<appSettings>
<add key="ConfigPath" value="C:\Inetpub\wwwroot\VaultService\Vault.config" />
<!-- SQLSERVERMODE-add key="ConnectString" value="Application Name='SourceGear Vault Server'; Connection Reset='true'; Server=server; Database=sgvault; User ID=UUUUUUUU; pwd=PPPPPPPP" />SQLSERVERMODE- -->
<add key="ConnectString" value="Application Name='SourceGear Vault Server'; Connection Reset='true'; Server=server; Database=sgvault; Integrated Security='true'" />
</appSettings>
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager