Presentation is loading. Please wait.

Presentation is loading. Please wait.

 Gert E.R. Drapers Group Engineering Manager Microsoft Corporation TL45.

Similar presentations


Presentation on theme: " Gert E.R. Drapers Group Engineering Manager Microsoft Corporation TL45."— Presentation transcript:

1  Gert E.R. Drapers Group Engineering Manager Microsoft Corporation TL45

2

3 CREATE TABLE dbo.Auction ( id INT NOT NULL, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) CREATE TABLE dbo.Auction ( id INT NOT NULL, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) class AuctionApplication ( int id; void MethodA(); ) class AuctionApplication ( int id; void MethodA(); ) Database class AuctionApplication ( int id; void MethodA(); void MethodB(); ) class AuctionApplication ( int id; void MethodA(); void MethodB(); ) class AuctionApplication ( int id; string cacheTitle; void MethodA(); void MethodB(); ) class AuctionApplication ( int id; string cacheTitle; void MethodA(); void MethodB(); ) Revision History App V 1 V 2 V 3 ALTER TABLE dbo.Auction WITH CHECK ADD CONSTRAINT Au_PK PRIMARY KEY (id) ALTER TABLE dbo.Auction WITH CHECK ADD CONSTRAINT Au_PK PRIMARY KEY (id) ALTER TABLE dbo.Auction WITH CHECK ADD CONSTRAINT Au_SK UNIQUE (name) ALTER TABLE dbo.Auction WITH CHECK ADD CONSTRAINT Au_SK UNIQUE (name)

4 -- version 1 Add table dbo.Auction IF OBJECT_ID (N'dbo.Auction', N'U') IS NULL BEGIN CREATE TABLE dbo.Auction ( id INT NOT NULL, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) END -- version 2 Add PK Au_PK IF NOT EXISTS (SELECT * FROM sys.key_constraints WHERE name ='Au_PK' AND type ='PK') BEGIN ALTER TABLE Auction WITH CHECK ADD CONSTRAINT Au_PK PRIMARY KEY (id) END -- version 3 Add UC Au_SK IF NOT EXISTS (SELECT * FROM sys.key_constraints WHERE name ='Au_SK' AND type ='UQ') BEGIN ALTER TABLE Auction WITH CHECK ADD CONSTRAINT Au_SK UNIQUE (name) END -- version 1 Add table dbo.Auction IF OBJECT_ID (N'dbo.Auction', N'U') IS NULL BEGIN CREATE TABLE dbo.Auction ( id INT NOT NULL, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) END -- version 2 Add PK Au_PK IF NOT EXISTS (SELECT * FROM sys.key_constraints WHERE name ='Au_PK' AND type ='PK') BEGIN ALTER TABLE Auction WITH CHECK ADD CONSTRAINT Au_PK PRIMARY KEY (id) END -- version 3 Add UC Au_SK IF NOT EXISTS (SELECT * FROM sys.key_constraints WHERE name ='Au_SK' AND type ='UQ') BEGIN ALTER TABLE Auction WITH CHECK ADD CONSTRAINT Au_SK UNIQUE (name) END

5 CREATE TABLE dbo.Auction ( id INT NOT NULL, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) CREATE TABLE dbo.Auction ( id INT NOT NULL, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) Logical Database class AuctionApplication ( int id; void MethodA(); ) class AuctionApplication ( int id; void MethodA(); ) class AuctionApplication ( int id; void MethodA(); void MethodB(); ) class AuctionApplication ( int id; void MethodA(); void MethodB(); ) class AuctionApplication ( int id; string cacheTitle; void MethodA(); void MethodB(); ) class AuctionApplication ( int id; string cacheTitle; void MethodA(); void MethodB(); ) Revision HistoryApp V 1 V 2 V 3 CREATE TABLE dbo.Auction ( id INT NOT NULL PRIMARY KEY, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) CREATE TABLE dbo.Auction ( id INT NOT NULL PRIMARY KEY, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) CREATE TABLE dbo.Auction ( id INT NOT NULL PRIMARY KEY, name VARCHAR(25) NOT NULL UNIQUE, start DATETIME NULL, len INT NULL ) CREATE TABLE dbo.Auction ( id INT NOT NULL PRIMARY KEY, name VARCHAR(25) NOT NULL UNIQUE, start DATETIME NULL, len INT NULL ) Source-controlled and deployed scripts do not need to match!

6 Incremental Deployment Logical Database Revision History V 1 V 2 V 3 New Deployment CREATE TABLE dbo.Auction ( id INT NOT NULL, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) CREATE TABLE dbo.Auction ( id INT NOT NULL, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) CREATE TABLE dbo.Auction ( id INT NOT NULL PRIMARY KEY, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) CREATE TABLE dbo.Auction ( id INT NOT NULL PRIMARY KEY, name VARCHAR(25) NOT NULL, start DATETIME NULL, len INT NULL ) CREATE TABLE dbo.Auction ( id INT NOT NULL PRIMARY KEY, name VARCHAR(25) NOT NULL UNIQUE, start DATETIME NULL, len INT NULL ) CREATE TABLE dbo.Auction ( id INT NOT NULL PRIMARY KEY, name VARCHAR(25) NOT NULL UNIQUE, start DATETIME NULL, len INT NULL ) CREATE TABLE dbo.Auction ( id INT NOT NULL PRIMARY KEY, name VARCHAR(25) NOT NULL UNIQUE, start DATETIME NULL, len INT NULL ) ALTER TABLE dbo.Auction WITH CHECK ADD CONSTRAINT Au_SK UNIQUE (name) ALTER TABLE dbo.Auction WITH CHECK ADD CONSTRAINT Au_SK UNIQUE (name)

7

8

9

10

11

12 Schema Model Source Database.dbschema file Project System DDL Scripts (artifacts) Reverse engineer schema into DDL artifacts Compose model representation from source code fragments Build Interpret, Analyze and Validate Schema Model Interpret, Analyze and Validate Schema Model

13 .SQL Source Parse SqlCode Dom Interpret Schema Model Validate

14  Gert E.R. Drapers Group Engineering Manager Microsoft Corp.

15 Schema Model Target Database Schema Model.dbschema file Deployment Engine Model Diff Incremental Target Update Additional schema artifacts.SQL … … Plan Executors

16

17 AdventureWorks2008 False True. AdventureWorks2008.sql Database.sqldeployment {3b4726f4-e981-42d7-9ab0-b500b7508bc9} Database.sqlcmdvars

18  Gert E.R. Drapers Group Engineering Manager Microsoft Corp.

19

20 Database Refactoring Database Unit Testing Data Generation T-SQL Static Code Analysis Schema Compare Data Compare 3 rd Party Designers 3 rd Party Tools SQL Server 2008 DSP Parser ScriptDOM Interpreter Reverse Engineer Deploy SQL Server 2005 DSP Parser ScriptDOM Interpreter Reverse Engineer Deploy SQL Server 2000 DSP Parser ScriptDOM Interpreter Reverse Engineer Deploy 3 rd Party DSP Parser ScriptDOM Interpreter Reverse Engineer Deploy DSP Extensions DSP Extensions DSP Extensions DSP Extensions DSP Extensions DSP Extensions DSP Extensions Database Model API Database Eco Project System Solution Explorer Schema View Dependency Viewer Editor Project Features

21

22

23 <extensions assembly="Microsoft.VisualStudio.TeamSystem.Data.Generators, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" version="1" xmlns="urn:Microsoft.VisualStudio.TeamSystem.Data.Extensions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:Microsoft.VisualStudio.TeamSystem.Data.Extensions Microsoft.VisualStudio.TeamSystem.Data.Extensions.xsd">

24  Gert E.R. Drapers Group Engineering Manager Microsoft Corp.

25 Contr. Input Refactoring Command Refactoring Operation Refactoring Contributor...... Contr. Input Contributor Refactoring Contributor Change Proposal

26  Gert E.R. Drapers Group Engineering Manager Microsoft Corp.

27

28 Blog: http://blogs.msdn.com/gertd http://blogs.msdn.com/gertd MSDN Forum Visual Studio Team System - Database Professionals http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=725&SiteID=1 Product information: http://msdn.microsoft.com/vsts2008/db http://msdn.microsoft.com/vsts2008/db Visual Studio Team System 2008 Database Edition GDR download location: http://www.microsoft.com/downloads/details.aspx?FamilyID=bb3ad767-5f69- 4db9-b1c9-8f55759846ed&displaylang=en http://www.microsoft.com/downloads/details.aspx?FamilyID=bb3ad767-5f69- 4db9-b1c9-8f55759846ed&displaylang=en Team Developer + Database Edition Merge Information http://msdn.microsoft.com/en-us/vsts2008/products/cc990295.aspx

29 Related Sessions Session TitleSpeakerDayTimeLocation TL47 Visual Studio Team System: A Lap Around VSTS 2010Cameron Skinner10/27 11:00 AM – 12:15PM Room 153 TL52 Team Foundation Server 2010: Cool New FeaturesBrian Harry10/27 03:30 PM – 04:45 PM Room 151 TL03 Microsoft Visual Studio Team System: Software Diagnostics and Quality for Services Habib Heydarian; Justin Marks 10/27 03:30 PM – 04:45 PM Room 515A TL09 Agile Development with Microsoft Visual StudioLori Lamkin; Sunder Raman 10/27 05:15 PM – 06:30 PM Room 502A TL45 Microsoft Visual Studio Team System Database Edition: Overview Gert Drapers10/27 05:15 PM – 06:30 PM Room 501B TL59 Visual Studio Debugger Tips & TricksJohn Cunningham10/28 12:45PM – 01:30 PM Room 409A TL37 Microsoft Visual Studio Team System: Leveraging Virtualization to Improve Code Quality with Team Lab Ram Cherala10/29 12:00 PM – 12:45 PM Room 408B TL61 Panel: The Future of Unit Testing Euan Garden, Jim Newkirk, Peter Provost, Nikolai Tillmann 10/29 12:00 PM – 12:45 PM Room 406A TL60 Improving Code Quality with Code AnalysisRavs Kaur10/29 12:00 PM – 12:45 PM Room 409A TL24 Improving.NET Application Performance and Scalability Steve Carroll; Ed Glas 10/29 01:15 PM – 02:30 PM Room 153 TL15 Architecture without Big Design Up FrontPeter Provost10/29 04:45 PM – 06:00 PM Room 403 TL04 Microsoft Visual Studio Team System Team Foundation Server: How We Use It at Microsoft Stephanie Saad10/30 08:30 AM : 9:45AM Room 151 TL51 Research: Contract Checking and Automated Test Generation with Pex Mike Barnett Nikolai Tillmann 10/30 08:30 AM : 9:45AM Room 403

30 VSTS 2010 Hands on Labs HOL CodeTitle TLHOL07VSTS 2010: Project Planning, Management, and Design TLHOL08VSTS 2010: Architecture Tools TLHOL09VSTS 2010: Team Foundation Server TLHOL10VSTS 2010: Software Quality TLHOL11VSTS 2010: Diagnostics and Performance

31

32 Please fill out your evaluation for this session at: This session will be available as a recording at: www.microsoftpdc.com

33 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

34


Download ppt " Gert E.R. Drapers Group Engineering Manager Microsoft Corporation TL45."

Similar presentations


Ads by Google