vspacer
   

ssrepair

 

Purpose

To prevent SourceSafe database corruption it is essential that no-one is logged onto SourceSafe when the 'Analyze' utility is running in one of it's repair modes.

This script forcibly terminates any open user sessions before running 'Analyze' and restores user access to the database after 'Analyze' has completed.

The script can be set up to run batch file genstats.bat to obtain database control counts before and after the 'Analyze' run.

It also reports database files open before the start of the repair.

SS

Tested with SourceSafe V5.0, V6.0.

OS

Windows NT/2K/XP Command line utility.

Usage

First check ssrights.txt to ensure that the user running this file has destroy rights. If the user does not have destroy rights analyze -d will not complain but will not delete anything either.

Execute the batch file from the Program Files\Microsoft Visual Studio\Common\Vss\utilities directory

Outputs

ssutility.log

reports from genstats.bat

ss_openfiles.txt

Info

ssrepair.bat is normally run direct from the console, but can also be set up to run it under the nightly audit.bat file

Installation

Copy the program into the 'Utilities' directory. The genstats.bat script must also be present.

Download

ssrepair 1.4 (4 KB)


   


Back to top | ZDS Home | This article updated January 15, 2004.