Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8315321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:06:22+00:00 2026-06-08T21:06:22+00:00

We have two databases, A and B. A contains tables that should also be

  • 0

We have two databases, A and B. A contains tables that should also be deployed to B; however, A should always be considered as the master of those tables. We don’t want to duplicate the schema object scripts. We do not want to simply reference A’s table from B – they need to be separate, duplicated tables.

As far as I can see, there are two ways to achieve this:

  1. Partial projects: export the shared schema objects to a partial project (.files) file, and import it into the B’s database project

  2. Adding shared schema object files to the B’s database project as links.

These both have the disadvantage that you need to explicitly specify files – you cannot specify a folder, meaning that any time a schema object that needs sharing is added to A’s database project, then either the partial project export would need to be run again, or the new file added as a link to B’s project.

What are the advantages and disadvantages of these techniques? Are there any better ways of achieving this that I may have missed? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:06:23+00:00Added an answer on June 8, 2026 at 9:06 pm

    Partial Projects are not supported in the VS2012 RC release, which makes me think that I shouldn’t use them. Furthermore, it appears that Composite Projects within SQL Server Data Tools (SSDT) may be the long term solution.

    I’ve discovered that it is possible to link to entire folders by editing the dbproj file manually. For example:

    <Build Include="..\SourceDatabase\Schema Objects\Tables\*.sql">
      <SubType>Code</SubType>
      <Link>Schema Objects\Tables\%(FileName).sql</Link>
    </Build>
    

    This works quite nicely, so it will be our preferred solution until we evaluate SSDT. The main drawback that I’ve found with it so far is that it will include all files in the source database’s folders, including those that are not included in the source database project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database that which contains two tables, links and tour. Tour is
I have two databases on one machine that also has two different sites running
I have a database that contains two tables: entries tags The entries table contains
What I have is two tables inside of a mysql database. One table contains
I have a database with two tables, tblPlayers and tblMatches. tblPlayers contains the following
I have two databases in SQL2k5: one that holds a large amount of static
I have two tables that contain completely separate information: table: tires columns: Tire_id name
Given two MS SQL databases which are known to have identical schemas, how should
I have two tables, SystemVariables and VariableOptions . SystemVariables should be self-explanatory, and VariableOptions
I have two databases named: DB_A and DB_B . Each database has one collection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.