VSS手工创建数据库的步骤(设数据库根目录为E:\VSSDB):
1.在根目录中创建名为srcsafe.ini(全局配置文件)的文件,文件内容如下:
Data_Path = data
Temp_Path = temp
Users_Path = users
Users_Txt = users.txt
2.在根目录中创建文件夹date、temp、users以及文件users.txt。
3.在users.txt文件中输入以下内容:
Admin = users/admin/ss.ini
4.在文件users中创建名为Template.ini的文件,文件内容如下:
; ss.ini
;
; This file contains all the variables that "customize" Visual
; SourceSafe to your particular needs. The ss.ini variables are
; documented in the Visual SourceSafe User's Manual. Only a few of them
; are placed in this file by default.
; Visual C++ programmers should remove the semicolon from the following
; line, to uncomment it. Other programmers REPLACE the line with
; different masks.
; Relevant_Masks = *.c, *.h, *., *.asm
; The following line prevents you from being asked for a checkout
; comment.
Checkout_Comment = -
; The following lines force Visual SourceSafe not to execute certain
; file types.
.reg (Win) = notepad.exe
.vbp (Win) = notepad.exe
.vcp (Win) = notepad.exe
.mak (Win) = notepad.exe
.bat (Win) = notepad.exe
; Your current Visual SourceSafe project.
Project = $/
5.在文件夹users中创建子文件夹admin。
6.在文件夹admin中创建空文件ss.ini和ssadmin.ini。
7.执行以下两条命令:
C:\Program Files\Microsoft Visual Studio\VSS\win32>mkss E:\VSSDB\data
C:\Program Files\Microsoft Visual Studio\VSS\win32>ddconv E:\VSSDB\data
至此,数据库创建完成,并且创建一个用户admin,密码为空。
注:Template.ini文件是必须的,否则无法添加新的用户,抛出错误:Invalid DOS Path。