Managing_Databeses_VS_and_TFSx

Download Report

Transcript Managing_Databeses_VS_and_TFSx

Managing Database objects in
Visual Studio and
Team Foundation Server
Presented by Sean P Brown @ SQL Saturday - Phoenix 2016
Agenda
 About Sean
 Source Control Intro
 Visual Studio Intro
 A look at the Visual Studio Interface
 Demo and examples
 Connecting to Team Foundation Server in Visual Studio
 Creating a Database Project in Visual Studio
 Adding Objects to a Database project
 Checking in and Checking out
 Deploying Objects to a Database
 Configuration and organization discussion
 Questions
Work Experience
Father/Husband/Brother/
/friend/Christian/develop
er/reading/movies/video
games/bike rides/dad
jokes/dinner with friends
11 years of SQL Server experience including
ETL Development, Database Design and
Architecture, and Web Service Development
Work at Grand Canyon University
Used to Work at Dell, Acxiom, Blackboard, U.S.
Army Corps of Engineers
Undergrad at Middle Tennessee State
university
MBA at Grand Canyon University
U.S. Army Reserve
-------------------------------------------Connect
Sean
Twitter: @seanpbrown
Email: [email protected] (no spam!)
Blog: www.seansdigs.com (maybe I will start
blogging again)
Facebook: search for me
Source Control
 Source Control is a system to manage changes to a software application’s source code
 Assists developers working in the same code base from submitting conflicting changes
 Makes it easier to roll back to a prior version if issues are found
 Makes sure everyone is working from the same source
 Team Foundation Server is the Source Control product from Microsoft
Source Control
Visual Studio
 IDE for Software Development by Microsoft
 May be familiar because of Business Intelligence Development Studio (BIDS)
 Can be used for Database Development too!
 Organized by project type (database, console, API) with groups of projects in a solution
 Why not use Sql Server Management Studio (SSMS)?
 Visual Studio has better connection to Source Control Systems
 They seem to be moving toward consolidating development IDE as Visual Studio, might as well learn
 You can use SSMS to write your SQL code and still use Visual studio and TFS, there are just extra steps
A look at the Visual Studio Interface
 We will look at screenshots of Visual Studio
 We are looking at my setup of Visual Studio Ultimate 2012
 There are lots of things you can customize – Themes, windows layout, toolbars, etc
 Many versions (2008, 2012, 2013, etc) and editions (community, professional, Ultimate, etc)
Visual Studio may look different if you are using a different version or edition, or have a
different theme, or moved your panes/toolbars around. It still works generally the same.
Visual Studio Start Page
Connect to Source Control
 Click on Team>>Connect to Team
Foundation Server
Connect to Source Control
 Brings up source control window
 Click on configure team projects
Connect to Source Control
 Pick the server, team project collection,
and team projects.
 Click server to manage the servers in the
drop down list
 We will be using my personal online
account
 Get your own account when you want to
do this yourselves!
Connect to Source Control
 You will need to make a workspace and
map it to a local folder
 Click file >> source control >> advanced
>> workspaces
Connect to Source Control
 You can manage your workspaces here
 Add, edit, or remove workspaces
Connect to Source Control
 Click advanced to get more settings
Connect to Source Control
 You can see your project collection in
source control
Create New Database Project
 Depending on the version and edition of
visual studio, you may need to install SQL
Server Data tools to get the database
project type in visual studio.
 The URL occasionally changes, so the
best thing to do is use the search engine
ofyour choice to find the best installer
Create New Database Project
 Click file >> new >> project
Create New Database Project
 Select database project
 Pay attention to project and solution
name
 Also, pay attention to where you put it
Create New Database Project
 Wait…
Create New Database Project
 Now it is in source control explorer!
 This solution is opened in solution explorer