restoring the sourcegear users after SQL reinstall

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
jarrette
Posts: 6
Joined: Fri Dec 26, 2008 12:11 pm

restoring the sourcegear users after SQL reinstall

Post by jarrette » Tue Jan 06, 2009 10:12 am

So SQL server 2008 had to be completely uninstalled and reinstalled.

I've pasted and re-attached sgmaster.mdf and sgvault.mdf from the new sql directory.

The problem now, I'm assuming, is that the user accounts don't exist anymore.... do I need to reinstall vault? will that overwrite the current vault db?

jarrette
Posts: 6
Joined: Fri Dec 26, 2008 12:11 pm

Re: restoring the sourcegear users after SQL reinstall

Post by jarrette » Tue Jan 06, 2009 10:21 am

also wanted to mention that all the system databases are all the new default ones. I'm not really sure how to restore the original MDF files but I do have them. I'm assuming that these have all the original security and users? SQL wont let you get rid of the master file and/or import another master.mdf.

jarrette
Posts: 6
Joined: Fri Dec 26, 2008 12:11 pm

Re: restoring the sourcegear users after SQL reinstall

Post by jarrette » Wed Jan 07, 2009 11:27 am

no ideas on this? Am I going to just have to reinstall the vault server?

mbainbridge
Posts: 28
Joined: Wed Mar 01, 2006 5:11 am

Re: restoring the sourcegear users after SQL reinstall

Post by mbainbridge » Fri Jan 09, 2009 7:05 am

You should just needs to re-install Vault and let it pick up the restored sgmaster and sgvault databases. The user accounts and Vault settings are stored inside these.

You don't need the old system databases (master, tempdb etc).

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: restoring the sourcegear users after SQL reinstall

Post by lbauer » Fri Jan 09, 2009 2:17 pm

Just pasting the databases into the directory won't do it. You have to reattach them to SQL Server for them to be functional and detected by the installer. What you need to do is similar to what needs to be done when you move to a new machine:

http://support.sourcegear.com/viewtopic.php?t=228
Linda Bauer
SourceGear
Technical Support Manager

Post Reply