INFO: Changing Visual SourceSafe User Name in Visual Basic

Last reviewed: February 28, 1997
Article ID: Q136400
4.00 5.00 | 4.00 5.00
WINDOWS   | WINDOWS NT
kbusage kbhowto

The information in this article applies to:

  • Microsoft Visual SourceSafe for Windows NT, versions 4.0, 5.0
  • Microsoft Visual SourceSafe for Windows 95, versions 4.0, 5.0
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic for Windows, 16-bit and 32-bit, version 4.0

SUMMARY

Under Windows NT and Windows 95, Visual Basic automatically tries to connect to Visual SourceSafe with your operating system's userID. If the logged in user has permission to see the SourceSafe server and there is a SourceSafe user with the same ID, the user is assumed to have already been validated and SourceSafe performs no additional password validation. If there is no SourceSafe user by that name, the login dialog is displayed and the user ID of the currently logged on user is placed in the user ID field.

This behavior is by design. However, it means that there is no way to change the default Visual SourceSafe user to anyone but the currently logged in SourceSafe user. In most situations, this is the behavior you want. However, this article describes how to log in as a different SourceSafe user than the one currently logged on the machine.

MORE INFORMATION

One method is to use an ID for SourceSafe which is not your user ID on your Windows NT or Windows 95 machine. Then you will be prompted for your ID and password every time.

Another suggestion is to create a new set of icons for the SourceSafe Explorer and SourceSafe Administrator. Use the -y parameter in the icon's command line definition, as shown here:

      <path to VSS>\win32\ssexp.exe -yadmin

      <path to VSS>\win32\ssexp.exe -yadmin,<password>

      <path to VSS>\win32\ssadmin.exe -yadmin

      <path to VSS>\win32\ssadmin.exe -yadmin,<password>


KBCategory: kbusage kbhowto
KBSubcategory: SourceSafe Visual Basic ssvb vbwin VB
Additional reference words: 4.00 5.00
Keywords : Basic SourceSafe ssvb VB vbwin Visual kbhowto kbusage
Version : 4.00 5.00 | 4.00 5.00
Platform : NT WINDOWS


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: February 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.