Database?
Answer :
Create a zero-byte file called admin.lck in the [share]dataloggedin folder and the database is locked.
Delete it when Analyze is done to unlock. Note that this will not kick out currently logged in users.
Answer :
This could be caused by having too many Dir= or Shadow= entries in one of the ini files. Try to create a
directory structure on disk which matches the VSS project tree. Then clean up the extra Dir= and
Shadow= entries in the .ini files. That way you only need an entry in your ini file for each tip project.
If you find that VC++ is very slow now that you're using the VSS integration, deleting the .NCB file
before opening the workspace might help. VC++ 6.0 doesn't have this.
Answer :
From SS Explorer select the project folder which contained the deleted file.
When on a project folder, click on Show Properties, then select the Deleted Items Tab.
From the command line use the SS GET command on the parent project. Do not list the files or use
*.* in the get.
For example: the following command will get files including deleted files.
Answer :
Answer :
This one is not intuitive. From within VSS Explorer, select the project, show history, check Labels Only,
find the label of interest, click on Details, select the label text and delete it. Click Close, which will ask if
you are sure you want to change the label. Click Yes and you're done.
Answer :
To search for articles relating to Visual FoxPro integration, search for the keyword SSFOX. Also check
out VisualSafeIntegration.
To search for other articles relating to Access integration, search for the keyword SSACC
Answer :
VSS 6.0 fully supports label comments. Label comments, however, are not available in VSS 5.0. For
more information check out KBA Q176353 http//support.microsoft/support/kb/articles/q176/3/53.asp
Answer :
Need to use the '-v' switch with an 'L' after it to indicate a label (-R is for recursive)
SS GET $project -VLmylabel –R
9) Is It Possible To Trap File Deletions And Rollbacks Using An Add-in/vss Ole Automation?
Answer :
These events are not supported as of this posting by Rich Knox of Microsoft Trapping
Rollbacks/Deletions.
10) Is Vss 5.0 Compatible With A 4.0 Database? Do I Have To Upgrade All Users To The New
Version? What About 6.0?
Answer :
Version 6.0 can read and write 5.0 databases, and has an option to upgrade or use a new database
format. Using this new format gives you the new label promotion feature, but cannot be read by
anything earlier than 6.0. There are also some performance enhancements with the new 6.0 version of
the database.
11) How Can I Disable The Integration Between VSS And Visual Studio?
Answer :
Name Disabled
Type REG_DWORD
Data 0x1
Answer :
This one is not intuitive. From within the VSS Explorer, perform the following steps (Steps are for VSS
6.0. Steps are similar for 4.0 and 5.0)
Select the project that has the label that you want to rename.
Uncheck Include File Histories and optionally select a date to search back to. Click OK.
Answer :
Microsoft has a web page listing some best practices, and another page containing their own version.
Answer :
No. The users NT logon name is used by default when starting VSS but this is the only integration. All
NT users who wish to use VSS as well need to be added separately by the VSS administrator.
For information about required network rights check out Q131022 - INFO Required Network Rights for
the Safe Directories.
Answer :
Make sure that no one is using the database and that Analyze will not begin to run while you are
backing up the database. Use any backup utility to copy the DATA, LABELS, and USERS directories.
See Chuck Kollars web site for further suggestions and a sample .bat file to secure and backup the
database.
Some VSS administrators have suggested using SSARC as a way to backup the database. Use SSARC -
d- <archive file> $/ to archive without deleting any files.
16) How Do I Recover From A Lost Administration Password?
Answer :
Check out the newsgroup posting HOWTO Reset VSS 6 Admin Password by Paul Gurtler.
17) What Are The Tips For Getting Keyword Expansion Working?
Answer :
Make sure that the srcsafe.ini variable Keyword_Masks is set to the appropriate file types you want
to expand keywords in. (e.g. Keyword_Masks=*.cpp,*.h,*.idl)
Remember that the keywords are case sensitive and include a colon at the end $History$
If you're using something that generates multiple lines, like $History$, you need to have the section
[Keyword Comments] set up to proper values for commenting out each line.
Answer :
This requires that you iterate through each version of the file looking for the label you want. Once the
correct version of the file is identified you can retrieve the comment for that version. Below is some
sample VB code demonstrating this
MsgBox(objVSSVersion.LabelComment)
End If
Next
Answer :
Analyze.exe is Visual Safes database maintenance program. This should be run regularly (suggestions
range from nightly to monthly). It can repair damaged databases as long as no users are logged on (use
the -f command line option). It also has an option for deleting unused files, which will recover space
taken up in the database by files and projects that have been purged (-d option). A compress option, -c,
will perform some compression on the database where possible.
Answer :
Use the supplied conversion utility pvcs_ss.exe. Note that this will not work with long file names, and
it does not work with log files created by the NT version of PVCS. See KBA Q140362
Answer :
22) How Can I Archive Old Projects Or Old Versions Of Current Projects?
Answer :
Use the SSARC and SSRESTOR programs. Version 6.0 has a GUI interface to these programs making
them easier to use. Also, be careful when restoring to a database that was created by copying an
existing database and then deleting all files and projects in it Read Q176780 - Use Guidscan.exe to View
or Change GUID in a VSS Database .
23) How Do I Reconnect A Project After The Shared Workspace File Loses The Project Location?
Answer :
Check out KBA Q192625, PRB VC++ Shared Workspace File Loses Project Locations.
Answer :
You can do this using the command-line pin parameter and the wildcard character for the file name.
For example
Answer :
VSS 6.0 supports some administrative functions. Read the specification and look at the samples.
Answer :
Search MS online support, Visual Safe, for any of the following keywords, depending on the version of
Visual Studio you are using and the Service Pack in which you want to research kbVS97sp1, kbVS97sp2,
kbVS97sp3, kbVS600sp1, kbVS600sp2, kbVS600sp3, kbVS600sp4, kbVS600sp5
Answer :
Answer :
29) Is There Any Information On Web Projects And Control Integration In Visual Studio .net?
Answer :
Certainly, check out Web Projects and Control Integration in Visual Studio .NET.
30) How Does One Implement Safe Integration With Frontpage 2000/ ?
Answer :
It would appear that the information provided in the FP2K user guide with respect to integrating FP2K
and Visual Safe inadvertently applies to the previous version (FrontPage 98) and not FP2K.
Answer :
Microsoft discourages the use of the SSSCC API. Instead they propose you use the OLE Automation
interface.
However, if you still wish to use the API you can request the MSSCCI spec by writing to
msscci@microsoft. They will send you the NDA you need to sign to get the spec, and then send you the
spec.