Microsoft KB Archive/159278

= PRB: Can Log on to a Locked Visual SourceSafe Database =

Article ID: 159278

Article Last Modified on 5/4/2001

-

APPLIES TO


 * Microsoft Visual SourceSafe 5.0 Standard Edition
 * Microsoft Visual SourceSafe 6.0 Standard Edition
 * Microsoft Visual SourceSafe 4.0a
 * Microsoft Visual SourceSafe 4.0a

-



This article was previously published under Q159278



SYMPTOMS
The Admin utility that ships with Visual SourceSafe version 5.0 allows the Visual SourceSafe administrator to "lock" a database. In theory, when a database is locked, no user can log on to the database. However, because the database format between version 4.0a and 5.0 was not changed and the database locking feature is new to version 5.0, users of Visual SourceSafe Explorer 4.0a can log on to a locked 5.0 database.



CAUSE
Database locking is a new feature in version 5.0, and the Visual SourceSafe Explorer version 4.0a does not check to see if the database is locked.



RESOLUTION
Upgrade all Visual SourceSafe installations to version 5.0 or above.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Locate a system that has Visual SourceSafe versions 4.0a and 5.0 installed. Launch the Visual SourceSafe 5.0 Admin utility, and click Lock SourceSafe Database on the Tools menu. Select the "Lock all users out of Visual SourceSafe" check box, and then click Close. Close the Admin utility and open the Visual SourceSafe Explorer 5.0.

NOTE: The following message appears:

The SourceSafe Database has been locked by the Administrator

 Click OK, and then close the Login dialog box.</li> Open the Srcsafe.ini file for the Visual SourceSafe version 4.0a installation and change the DATA_PATH entry so that it points to the data directory of the Visual SourceSafe 5.0 installation. Save the change, and close the Srcsafe.ini file.</li> Open Visual SourceSafe Explorer 4.0a. Although the database is locked by the administrator, you can log on to the database.</li></ol>

Keywords: kbprb KB159278

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.