PRB: <filename> is Already Open

Last reviewed: April 23, 1997
Article ID: Q167263
The information in this article applies to:
  • Microsoft Visual SourceSafe, 16-bit and 32-bit, for Windows, versions 4.0, 4.0a
  • Microsoft Visual SourceSafe, 32-bit, for Windows, version 5.0

SYMPTOMS

When trying to perform some action in the Visual SourceSafe Explorer you receive the following message:

   c:\src_server\src_share\data\<a-z>\<filename> is already open

where filename is a file in the Visual SourceSafe database.

CAUSE

This error can occur if another user has the file locked, or if the network has not released it's lock on the file.

RESOLUTION

The file that the error message is referring to is one of the many files stored in your Visual SourceSafe database, specifically in the DATA subdirectory. Visual SourceSafe uses its own naming scheme to track these files and their history of changes.

You can get this message if another user has this file locked. One way to fix it is:

  1. Log out from Visual SourceSafe.
2. On the Visual SourceSafe command line, type the following:

      ss status $/project/filename

This should close the file handle and fix the problem.

NOTE: To get the actual filename from the Visual SourceSafe filename, use the PHYSICAL command.

For additional information about the PHYSICAL command, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q131447
   TITLE     : Use PHYSICAL Command to Find SourceSafe Database File

If the above method does not correct the problem you may have to use the server utilities for your server operating system to manually break the users connection to close the file handle.

If problems like this persist you may need to enable SourceSafe locking.

For additional information on file locking, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q124525
   TITLE     : INFO: How SourceSafe Locks Files in the DATA Directory

STATUS

This behavior is by design.


Keywords : kbui ssui
Version : 4.0 4.0a 5.0
Platform : WINDOWS
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 23, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.