Reputation: 28385
As a C# developer, I'm familiar with adding assembly references in a Visual Studio project. It looks like you can also add a database reference to a project.
My question is: Why would you want to add a database reference to a project?
Does this let you do something special like track dependencies on database tables or columns?
Upvotes: 2
Views: 1090
Reputation: 8110
For SSDT projects such as you mentioned, there are two main use cases for database references:
Note that the help you linked to is the old help for VS2010 projects, more accurate help for SSDT is here.
Also you might notice that you can also add references to .Net assemblies, that may be necessary if you are writing SQL CLR code in your project and need to reference external code.
Upvotes: 1
Reputation: 819
You cannot add a reference to a database project. The page you linked describes adding a reference to a database in a database project. The reference allows you to run scripts against the database within the project.
Upvotes: 1