最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】The SourceSafe database path XXXdata does not exist. Please select another database

工作和技术 crifan 6519浏览 0评论

【已解决】The SourceSafe database path XXXdata does not exist. Please select another database

【背景】
在WinXP的命令行cmd中运行(图形界面的)VSS(Visual Source Safe)的命令行工具ss,结果出错:
D:Documents and SettingsE516537>ss -v
The SourceSafe database path \CH3UW1050ENGINEERSOFTWAREINSTALLSOURCE~1data does not exist. Please select another database.

【解决过程】
网上找了下,没找到啥解决办法,只是有人提到了srcsafe.ini文件:
http://www.tek-tips.com/viewthread.cfm?qid=1375445&page=3
然后自己去折腾了下,发现,当前PC上的VSS的安装路径:
C:Program FilesMicrosoft Visual StudioVSS
下面,就有一个srcsafe.ini,其中注释写到:

; Client srcsafe.ini
;
; Your Microsoft Visual SourceSafe Client installation uses this file to
; access a remote SourceSafe database on a network server. This file
; contains only one uncommented line: a #include statement containing the
; path to your network server’s initialization file, SRCSAFE.INI. If this
; file does not contain such a line, add a #include statement containing
; the path to your network server’s initialization file. For example:
; #include \SRCSERVERSRCSHARESS4SRCSAFE.INI
;

所以,照葫芦画瓢,自己写了对应内容,把当前VSS所用到的数据库的ini文件,添加进来:
#include \NJ55W2572softwaresourcesafesrcsafe.ini

这样,即可。
此时,再去WinXP的cmd中运行:
ss /?
在输入用户名和密码后,可以正常执行,会显示VSS的版本信息:
D:Documents and SettingsE516537>ss /?
Username: XX
Password: XXX
Microsoft (R) Visual SourceSafe Version 6.0c
Copyright (C) Microsoft Corp. 1994-2001. All rights reserved.
Visual SourceSafe Version 6.0c (Build 9238)

并打开VSS的help文件,其中有关于VSS命令的详细解释。
比如:

Share (Command Line)
See Also

Makes the specified file or project a member of the current project.

Syntax
ss Share VSS files [-C] [-E] [-G] [-H] [-I-] [-N] [-O] [-P] [-R] [-V] [-W] [-Y] [-?]

Examples
Makes $/WORD/TEST.C a member of the current project:

ss Share $/WORD/TEST.C

Makes version 6 of TEST.C a member of the current project (note the command verb, Pin):

ss Pin TEST.C -V6

Creates a branch from the project $/WORD:

ss Share $/WORD -R -E

The following table describes the command-line options available with this command.

Option Description
-V Share an earlier version of a file (or project).
-G Set Get options for the retrieved local copy.
-W Make the retrieved local copy writable.
-R Share an entire project list recursively.
-P Specify a new name for the shared project.
-C Use the same comment for all shared projects (Available only when sharing projects.).
-O Paginate or redirect the command output.
-E Branch after sharing.
-I- Ignore: Do not ask for input under any circumstances.
-N Change between long and short file name mode.
-Y Specify a username and/or password.
-?, -H Request online Help on a command. 

不过,后来也找到了网上,微软的官方对此问题的解释:
PRB: Data Path Errors Starting SourceSafe
http://support.microsoft.com/kb/136401

【总结】
遇到问题,从最基本的现象着手,自己动手分析,往往都可以有很大进展,最终多数都可以解决问题。

转载请注明:在路上 » 【已解决】The SourceSafe database path XXXdata does not exist. Please select another database

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (1)

  1. 我遇到和楼主一样的问题,但是本地没有srcsafe.ini文件,只有ss.ini 解决方法:在控制面板中添加Windows凭据,输入IP地址\admin + 密码
    yoyo8年前 (2017-03-01)回复
82 queries in 0.175 seconds, using 22.09MB memory