Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

How to: Add Files to a Database

Visual Studio 2005

You can add one or more files to the currently selected project in a database using the Add Files command on the File menu of Visual SourceSafe Explorer. You can also add one or more files to the database using drag and drop from Windows Explorer to Visual SourceSafe Explorer. Another alternative for adding files is the use of the Add command from the command line. The files added to Visual SourceSafe are filtered by the settings on the File Types tab in the SourceSafe Options dialog box.

To undo a file addition, it is recommended to use the Delete command. See How to: Delete a File or Project.

NoteNote

Visual SourceSafe databases limit file size to 2 GB.

To add a single file to a database:

  1. In Visual SourceSafe Explorer, open the database. For more information, see How to: Open a Database.

  2. Ensure that you have the correct project rights to add files to the database. If you have questions, see your database administrator. A related topic is How to: Assign Project Rights.

  3. Select the project.

  4. On the File menu, click Add Files.

  5. In the Add File to <name> dialog box, select a file type in the List files of type box. This is an optional step used to filter the file list so that it is not so long.

  6. Using the folder and file name lists, select the file and click Add to place it in the project. Files already in the project are not displayed in the file name list.

  7. Enter a comment if desired, then click OK.

To add multiple files to a database:

  1. In Visual SourceSafe Explorer, open the database. For more information, see How to: Open a Database.

  2. Ensure that you have the correct project rights to add files to the database. If you have questions, see your database administrator. A related topic is How to: Assign Project Rights.

  3. Select the project.

  4. On the File menu, click Add Files.

  5. In the Add File to <name> dialog box, select a file type in the List files of type box. This is an optional step used to filter the file list so that it is not so long.

  6. Using the drive and folder lists, select the folder containing the files to add.

  7. In the file name list, hold down the CTRL key and click all the files you want to add. To select all displayed files, press the HOME key to move to the beginning of the list, then SHIFT+END to move to the end. This dialog box will accommodate only 256 characters.

  8. Click Add to place the selected files in the current project. Files already in the project are not displayed in the file name list.

  9. Enter a comment if desired, then click OK.

To add files using drag and drop:

  1. Open Windows Explorer and resize it so you have enough room to display Visual SourceSafe Explorer.

  2. Open Visual SourceSafe Explorer and resize it so you have enough room to display Windows Explorer.

  3. In Visual SourceSafe Explorer, open the database. For more information, see How to: Open a Database..

  4. Ensure that you have the correct project rights to add files to the database. If you have questions, see your database administrator. A related topic is How to: Assign Project Rights.

  5. Select the project.

  6. Select one or more files or folders from the list view (on the right pane) in Windows Explorer.

  7. Drag the selected files or folders onto the selected project in Visual SourceSafe Explorer. Files are added directly to the project. Folders are added as subprojects of the Visual SourceSafe project.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft