?
Solved

visualsourcesafe

Posted on 2003-02-25
12
Medium Priority
?
156 Views
Last Modified: 2010-05-01
How to use the sourcesafe in a multiuser environment.i am not worried abt the forms(checkin & checkout)-i want info abt the project..can each user check in and check out the project or MAKing writable enough....
Advance thnx
0
Comment
Question by:sridhar12345
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 3
  • +3
12 Comments
 

Author Comment

by:sridhar12345
ID: 8016017
msdn abt sourcesafe dint help
0
 
LVL 1

Expert Comment

by:HarmnKardn
ID: 8017165
Multiple users can check out a project simulatenously, but not all files within the project.  SourceSafe does not let multiple users modify the same file in realtime (that is, show the other developers edits while you're editing the same file).  I have never actually seen an IDE/version control system that supports this.

With SourceSafe, users should not both simultaneously check out the same file, unless they wish to deal with merging the changes from the two seperate files at another time.

Of course, SourceSafe lets two users check out different files in the same project, and work on them as necessary.
0
 
LVL 1

Expert Comment

by:dmstrat
ID: 8020498
I would add to HarmnKardn notes by saying that making writable should be enough for the .vbp file for the duration of the modification of the code as long as you aren't adding new files to the project.  In that case you need to check out the main .vbp/.vbg file so that it can be properly modified to include the new files being created.  Other than that, your "get latest version" should be enough to keep up with the latest "happy" code while the main .vbp file isn't being corrupted by your specific development environment file locations.  

I would also suggest you try it out yourself with two computers that have different "working directories" to show how keeping a "writable" version of the .vbp/.vbg file will be enough for regular work.  Then, when it comes to compiling the project, you can use a single computer that checks out all the files, compiles, and checks in.  

Don't forget to "label" each milestone compile directly in VSS. It's not required, but a good technique.

Dan M.
dmstrat@yahoo.com

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:sridhar12345
ID: 8023599
thnx for the comments...yeah we hav to check out the project for addin a form..
The doubt now is will the administrator be working on the main copy or is it possible to hav a seperate workin directory for him
0
 
LVL 1

Expert Comment

by:HarmnKardn
ID: 8025668
There is no "main" copy...ever user working on the project has a copy of the whole project on their own local disk.  For each user, changes to files not checked out are prohibited, changes to files that are checked out are saved locally and to the server.  All users have seperate working directories on their own machines.
0
 
LVL 1

Expert Comment

by:dmstrat
ID: 8027106
Continuing with HarmnKardn's notes: the files on the server are not changed until the files are "checked in..."  Therefore, once you establish a "publish" routine where your developers all check in their changes, the project should compile with all the changes made at that time.  You then put a "label" on the project to signify your milestone event after you confirm the compile is what you want.  This compile can be done on any machine that has access to the VSS database and doesn't have to be done on the server.  

Now you should have your complete project in place, compiled, and ready for the next set of requirements.  The person who did the build can continue with their work and developers can check-out the files they need to continue working.

It's not a "requirement" to check-in all the files before the "official compile" but it's a good idea to let the developers know that it's time to turn their current stuff in so that the compile is up to date.  

Dan M.
dmstrat@yahoo.com
0
 

Author Comment

by:sridhar12345
ID: 8031075
"No main copy" ??? we will be prompted whether v wan to replace the files (in our working directory) from the main directory...
so i think there will b a master folder which consists of the latest changes (performed by all users)...my question is -is that folder the same folder of the admininstator's working folder
0
 
LVL 1

Expert Comment

by:HarmnKardn
ID: 8033572
The "master" copies of the files are stored in the VSS database on the VSS server.  It is not simply a folder on a hard drive somewhere that has a copy of all the files in your project.  

So this "master folder" is *not* the administrators working folder.
0
 
LVL 1

Expert Comment

by:dmstrat
ID: 8034079
If you want to think in the way of a "master folder", everyone has the same copy of the files when each user uses the "get latest version" action when all of the files that the user requesting the action is "checked-in".  The use of "get latest version" means that the user will receive the current version of all the files at the time that they were last checked-in.  Therefore, if developer 1 has two files checked out and has done some work on the file(s) and developer 2 does a "get latest version" that includes those two files.  Then developer 2 will receive a version of those files BEFORE those files were checked out.  Meaning that those two files will not have the changes that developer 1 is currently performing on those files.  

However, once developer 1 "checks-in" those files, then developer 2 can "get latest version" and receive those changed files for their local copy.  

Even with all the checking in and out, an administrator (or just developer 1 or 2) could "get latest version" on their local machine, do a compile, and that version will be the most up to date version of the application you are working on minus any changes currently being done by "checked-out" files which may not have "working code".  That was the reason for "notifying" the developers to check in their good code before the "compile" time.

However, you can "view" a virtual master folder when you open the VSS application.  That application accesses the VSS Database and creates what may appear to be the "master folder" you are talking about.  However, you will not find it on any machine's directories.  If you do happen to find a matching directory structure on the server, it is strickly a "working folder" that's it, nothing more.  So, don't worry about "master folders" as each "working directory" can be a copy.
0
 

Expert Comment

by:CleanupPing
ID: 8901149
sridhar12345:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8972769
sridhar12345, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Save as PAQ -- No Refund.

DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 9667968
PAQed - no points refunded (of 100)

Computer101
E-E Admin
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question