Visual Studio 2010 Database Projects Randy Knight
Randy Knight MCITP, MCDBA, MCTS, MCSE … 20 Years experience with Microsoft technology, focusing on SQL Server for the last 14. Owner and Principal Consultant, SQL Solutions Group randy@sqlsolutionsgroup.com
Objectives The Challenge Visual Studio 2010 Requirements Review Project Types Work with Database Projects Work with Data Features Issues and Challenges
The Challenge Unlike Source Code, Databases are full of Data! Functions, Stored Procedures, Some Views can be treated the same as code Tables, Indices, Indexed Views Cannot Have to deploy deltas / incremental changes Source Control should be able to re-create DB from scratch How do we handle this?
Solutions No DB Source Control at all Manage object-level scripts in source control Manual deployment script Deployment scripts from RedGate, ApexSQL, etc. Issues Extremely labor intensive Error Prone Doesn’t work the same way as code deployments
Requirements Visual Studio 2010 Editions
Project Types
Demo
Data Features Schema Comparison Data Compare T-SQL Editor
Demo
Issues and Challenges References Security Objects on Remote Servers Other Database Projects .dbschema files master, msdb Project Properties References Can’t tell you how many times this has gotten me Security Logins/Users/Roles can be a mess Just do DB Roles and Permissions Objects on Remote Servers Especially other DBMS’s
Demo
What’s Missing Configuration / Lookup Data Management Pre/Post Deployment Scripts Use a “Gold” database and use Data Compare to Generate Scripts XML Files CSV Files Native BCP …
Resources MSDN Forums SQL Server Central Forums Twitter VS Team System > DB Development Tools SQL Server Central Forums Twitter #sqlhelp, #sqlpass #sqlblog #sqlsat @randy_knight
Please Complete the Evaluation Form Pick up your evaluation form: In each presentation room Drop off your completed form Near the exit of each presentation room At the registration area Presented by Dell Session Title
For attending this session and PASS SQLRally Orlando, Florida THANK YOU! Presented by Dell For attending this session and PASS SQLRally Orlando, Florida Session Code | Session Title