Partilhar via


How to: Share Files

You can use SQL Server Management Studio to share items across source control projects. When you share an item, any changes to the item are reflected in every project to which the item is shared.

Item sharing provides the following advantages to source control users:

  • Makes it unnecessary for each project that uses the shared item to store a separate copy of the item, conserving disk space on both the source control client and server. The source control provider stores the shared item in one central location, and every project to which it is shared stores a pointer to that location.
  • Avoids version incompatibilities. Because every project to which the item is shared uses the same version of the item, you avoid the conflicts that arise when each copy of an item is changing independently within multiple projects.

To share an item

  1. In Solution Explorer, select either the folder or project in which you want to place the shared files.

  2. On the File menu, point to Source Control, and then click Share.

  3. In the Share with dialog box, browse the directory list for the item you want to share, and click that item.

  4. Click Share.

See Also

Other Resources

Source Control Basics

Help and Information

Getting SQL Server 2005 Assistance