Upload
david-truxall
View
2.908
Download
1
Tags:
Embed Size (px)
DESCRIPTION
The features in Visual Studio 2005 for Database Professionals
Citation preview
Visual Studio Team SystemVisual Studio Team Systemfor Database Professionalsfor Database Professionals
David Truxall, Ph.D.David Truxall, Ph.D.
Principal ConsultantPrincipal Consultant
NuSoft SolutionsNuSoft Solutions
AgendaAgenda
VSTS for Database ProfessionalsVSTS for Database Professionals
OverviewOverview Schema ManagementSchema Management Unit TestingUnit Testing
Visual Studio Team SystemVisual Studio Team SystemVisual Studio Team SuiteVisual Studio Team Suite
MS
F P
rocess a
nd
Gu
idan
ce
MS
F P
rocess a
nd
Gu
idan
ce
Visual Studio Team Foundation ServerVisual Studio Team Foundation Server
VisualStudio
IndustryPartners
SoftwareSoftwareArchitectsArchitects
SoftwareSoftwareDevelopersDevelopers
SoftwareSoftwareTestersTesters
DatabaseDatabaseProfessionalsProfessionalsVisual
StudioTeam
ExplorerApplication Application ModelingModeling
Infrastructure Infrastructure and Deployment and Deployment
ModelingModeling
Code AnalysisCode Analysis
Performance Performance TuningTuning
Security AnalysisSecurity Analysis
DatabaseDatabase Deployment Deployment
DatabaseDatabaseChange Mgmt.Change Mgmt.
DatabaseDatabase Testing Testing
Performance Performance TestingTesting
Manual TestingManual Testing
Test Case Test Case ManagementManagement
Visual Studio Professional Visual Studio Professional EditionEdition
Change ManagementChange Management
Work Item TrackingWork Item Tracking
ReportingReporting
Project SiteProject Site
Build ServicesBuild Services
Project ManagementProject Management
Load Test AgentLoad Test Agent
Class Class ModelingModeling
Unit TestingUnit Testing
New!
Visual Studio Team SystemVisual Studio Team SystemTeam Edition for Database ProfessionalsTeam Edition for Database Professionals Take control of database changeTake control of database change
Offline, change management of the database Offline, change management of the database schemaschema
Data and Schema Compare toolsData and Schema Compare tools Automated refactoring of database objectsAutomated refactoring of database objects
Automate database testing to improve qualityAutomate database testing to improve quality Unit testing for database queriesUnit testing for database queries Automatic generation of meaningful test dataAutomatic generation of meaningful test data
Bring data professionals into the lifecycleBring data professionals into the lifecycle Provide full Visual Studio Team System supportProvide full Visual Studio Team System support Support Work Item tracking for database changesSupport Work Item tracking for database changes
Schema ManagementSchema Management
Source ControlSource Control Build and DeploymentBuild and Deployment RefactoringRefactoring Database ComparisonDatabase Comparison
Schema ManagementSchema Management Difficult to Manage Difficult to Manage
Change to the schemaChange to the schema Production Database Production Database
is one version of the is one version of the truth truth forfor Data and Data and SchemaSchema
DBA doesn’t have DBA doesn’t have access to changes access to changes until he/she has until he/she has deploy or reject choicedeploy or reject choice
Changes often made Changes often made to production to production database and not database and not rolled back into testrolled back into test
ProductiProduction on
DatabaseDatabase
ProductiProduction on
DatabaseDatabase
ManagemeManagement Studiont Studio
TuningTuningMonitoringMonitoring
““One Version of One Version of the Truth”the Truth” for for Data and Data and SchemaSchema
SchemaSchemaSchema ChangesSchema Changes
Schema ManagementSchema ManagementProductiProducti
on on DatabaseDatabase
ProductiProduction on
DatabaseDatabase
ManagemeManagement Studiont Studio
TuningTuningMonitoringMonitoring
““One Version of One Version of the Truth”the Truth” for for DataData
““One Version of the One Version of the Truth”Truth” for for Schema Schema •Offline Offline •Under Source Under Source ControlControl
SchemaSchema
Schema ChangesSchema Changes
Changes can be Changes can be rolled out in a rolled out in a scheduled, managed scheduled, managed wayway
Scripts allow Scripts allow administrators to administrators to mange change mange change updatesupdates
Schema Change now managed in Schema Change now managed in VSTS and TFSVSTS and TFS
Production Production DatabaseDatabase is now is now “One version of the truth” only for “One version of the truth” only for DataData
DBA doesn’t have access to DBA doesn’t have access to changes until he/she has deploy changes until he/she has deploy or reject choiceor reject choice
““One Version of the truth for One Version of the truth for Schema” is Under Source ControlSchema” is Under Source Control
Control the SchemaControl the Schema Project-BasedProject-Based
High Granularity - “Object Level”High Granularity - “Object Level” Each DB object is a fileEach DB object is a file T-SQL, DDLT-SQL, DDL
OfflineOffline Production server is no longer the “truth”Production server is no longer the “truth”
Under Version Control Under Version Control TFSTFS Supports continuous integrationSupports continuous integration
Build and DeploymentBuild and Deployment Project under Source Control is the Project under Source Control is the
“truth”, not the production database“truth”, not the production database Build a Deployment ScriptBuild a Deployment Script
VSTSVSTS SQL Management StudioSQL Management Studio <gasp!> Command line<gasp!> Command line
Data Loss PreventionData Loss Prevention Automatic BackupsAutomatic Backups DBPro must be installed on the build DBPro must be installed on the build
serverserver
RefactoringRefactoring Rename any schema objectRename any schema object Updates all references in…Updates all references in…
Schema ObjectsSchema Objects Data Generation PlansData Generation Plans ScriptsScripts DB Unit TestsDB Unit Tests
Preview ChangesPreview Changes Global UndoGlobal Undo
Database ComparisonDatabase Comparison
SchemaSchema DataData Visual ComparisonVisual Comparison Generate Change ScriptsGenerate Change Scripts
Visual Display ofSchema Differences
Visual Display ofSchema Differences
Automatically Produce Script to Deploy
Automatically Produce Script to Deploy
Compare Schemas AcrossProjects and Databases
Compare Schemas AcrossProjects and Databases
DemoDemo Import SchemaImport Schema RefactorRefactor Schema CompareSchema Compare
Unit TestingUnit Testing
Generate Test DataGenerate Test Data Unit TestsUnit Tests
Data Generation Plans Data Generation Plans allow you to create allow you to create
meaningful/repeatable meaningful/repeatable test datatest data
Generate Test DataGenerate Test Data
TypesTypes ConstraintsConstraints
Min/MaxMin/Max
DistributionDistribution Uniform, Normal, Inverse Normal, Uniform, Normal, Inverse Normal,
Exponential, Inverse ExponentialExponential, Inverse Exponential
Number of RowsNumber of Rows
Data GeneratorsData Generators SimpleSimple
StringsStrings NumbersNumbers Date and TimeDate and Time
ComplexComplex Foreign keyForeign key Regular ExpressionRegular Expression Data Bound (database lookup)Data Bound (database lookup)
CustomCustom
Unit TestsUnit Tests
Generate test stubsGenerate test stubs Stored Procedures, Triggers, FunctionsStored Procedures, Triggers, Functions
Validation/AssertionsValidation/Assertions T-SQL BasedT-SQL Based
RAISEERROR commandRAISEERROR command
Client-Side AssertionsClient-Side Assertions Non-Empty, Empty, Row Count, Execution TimeNon-Empty, Empty, Row Count, Execution Time
Pre and Post test scriptsPre and Post test scripts
Unit TestsUnit Tests
Automatic Deployment IntegrationAutomatic Deployment Integration Deploys Database projectDeploys Database project Automatically generate test data based on Automatically generate test data based on
data generation plandata generation plan
CustomizableCustomizable Built on VSTS TestBuilt on VSTS Test C# or VB.Net codeC# or VB.Net code
Unit Test Database Code(Sprocs, Views, Triggers, etc.)
Unit Test Database Code(Sprocs, Views, Triggers, etc.)
Specify Result Conditions
Specify Result Conditions
DemoDemo
Generate DataGenerate Data Unit TestingUnit Testing
Latest DownloadsLatest Downloads Service Release 1Service Release 1
http://support.microsoft.com/kb/936612/http://support.microsoft.com/kb/936612/
Cross-Database ReferencesCross-Database References Set variables in deployment scriptsSet variables in deployment scripts Support for SQL Server sp2Support for SQL Server sp2
PowerToolsPowerToolshttp://go.microsoft.com/fwlink/?LinkId=88852http://go.microsoft.com/fwlink/?LinkId=88852
More Refactoring optionsMore Refactoring options More Data GeneratorsMore Data Generators MSBuild TasksMSBuild Tasks
What about VS 2008?What about VS 2008?
For DBPro, it is essentially DBPro with For DBPro, it is essentially DBPro with the Service Release 1 codethe Service Release 1 code
Other VSTS features, like code Other VSTS features, like code coverage come into playcoverage come into play
Built into the InstallerBuilt into the Installer Some bug fixesSome bug fixes
ResourcesResources
Team SiteTeam Site http://msdn2.microsoft.com/en-us/teamsystem/aa718764.aspxhttp://msdn2.microsoft.com/en-us/teamsystem/aa718764.aspx
Product ForumProduct Forumhttp://forums.microsoft.com/msdn/showforum.aspx?http://forums.microsoft.com/msdn/showforum.aspx?forumid=725&siteid=1forumid=725&siteid=1
BlogsBlogs http://blogs.msdn.com/cameronshttp://blogs.msdn.com/camerons http://blogs.msdn.com/sachinre http://blogs.msdn.com/sachinre
AgendaAgenda
VSTS for Database ProfessionalsVSTS for Database Professionals
OverviewOverview Schema ManagementSchema Management Unit TestingUnit Testing
http://dotnetjunkies.com/WebLog/davetrux/