how to create database project in visual studio 2010

My Learning: Log in Learning Report [Log in]


Remove Ads or Log in
Remove Ads or Log in
+0  |  -0
Author(s): by Katie Glownia & by Emil Glownia

In this step by step tutorial I will show you how to create database project in Visual Studio 2010. For the purpose of this tutorial I will use  Visual Studio 2010.

 

Let's start with explaning why you would want to create a SQL Server database project. Visual Studio has a template that allows you to store information about SQL Server objects in a centralized place and under TFS (version control) that allows you to build your database project in a controlled environment that is easy to share with other developers but the project allows much more than that. You can use to easily deploy changes to a server and it will perform schema comparison (based on settings you chose) which saves a lot of time when you want to prepare release scripts manually. Additionaly you use can use the database project to enforce certain company standards. There might be certain standards you cannot enforce but you can deploy the project to dev environment and use SQL Server policy-based management to ensure you comply with standards (for instance stored procedures start with usp_ and not system stored procedures sp_)

 

How to create database project

In Microsoft Visual Studio 2010 I select New Project option.

create new database project

 

Once New Project window is selected I go to Install Templates and select Database, SQL Server, Advanced on the left side and on the right side I select SQL Server 2008 Database Project.

 

I type name of the database project and click ok

 

My new project is added and I can see it in solution explorer.

 

Soon I will add links on how to add tables to database project and how to deploy it. (If I forget use the search bar at the top).

 

Take care

Katie


Remove Ads or Log in

We need you!

Time of free websites that are supported by ads only is over, due to increasing use of ad blocking.

Our website would die probably within a year; as there is no point investing free time and later on own money in something that is doomed.

Our only hope to survive (without any ads) is to ask our visitors like yourself to support it by becoming a member.

We know it's only going to be a tiny % of visitors who will do that but we hope that will be enough to keep our website for free and within a year switch off all ads. (54% page ads are switched off already for visitors from low income countries and 15% video ads are switched off for everyone).

Become a proud member

Visitor Voting

Visitor comment (we like):
"I like you both, you read Dale Carnagie, you want what most of us want and you are trying to do something useful for all! You are already successful! Blessings!"
Add comment (no email required).



Add Comment
No data was returned.


Are you a member?

If yes than please log in

Learning Map is for members with Bronze, Silver and Gold Membership.
For more information visit membership options.


Close this window , log in or learn more about membership benefits