Master Morality
Master Morality

Reputation: 5907

Multiple Sql Server 2008 Database Projects, do they go in a Sql Server 2008 Server Project?

I'm a bit new to database projects, but I find that with a bigger team it is a good way to synchronize development.

Questions

  1. Do I create a Sql Server 2008 Server Project and merge both of these databases into it? From what I can tell, a Server Project still only represents a single database.

  2. If a Server Project isn't meant to represent multiple databases, what is it for?

  3. I have added steps in our TFS Workflow to deploy changes from the first Database Project into our Dev environment on check-in (CI). Assuming a Server Project is meant to contain multiple database projects, can I deploy it and have it deploy changes in both databases?

Thanks!

Upvotes: 0

Views: 1121

Answers (1)

Remus Rusanu
Remus Rusanu

Reputation: 294247

A server project is for server scope objects needed by your solution: endpoints, server principals (logins), server level permissions, linked servers and other similar constructs that are not scoped to any particular database.

Seems to me that what you need is a solution with two projects:

  • your original database project
  • you reference database project

You need a third project in this solution, a server project, only if you must add server scoped objects.

For more details, see Using References in Database Projects.

Upvotes: 1

Related Questions