Database development with visual studio 2010


Published on

Talk I Delivered @ Microsoft Banglore on Database Development with Visual Studio 2010.

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Database development with visual studio 2010

  1. 1. Visual Studio 2010 for the Database Developer<br />Abhimanyu Singhal<br />Co-Founder<br />iMentor Knowledge Services<br />
  2. 2. Abhimanyu Singhal<br />Background<br />First Laid Hands on computers in 1994, been a geek for quite some time<br />Spent Last 15 Years in working on Different Projects, Technologies and development platforms<br />Currently<br />Helping organization in implementing VSTS as ALM Platform<br />Co-Founder and Lead Consultant for iMentor Knowledge Services<br />Provide High-End Technical Training and Consultancy<br />“As above, so below<br />As Within, so with”<br />
  3. 3. Objectives<br />we look at the latest advances in Microsoft Visual Studio 2010 for the database developer, including the new Data Tier Applications (DAC) that take advantage of a new type of deployment packaging to simplify and streamline the process. We demonstrate new refactoring capabilities, the schema and data comparison tools, the data generation features that can be used to simulate test scenarios, and we use code analysis tools to verify that standard and best practices are being followed.<br />
  4. 4. Establish Project Environment<br />
  5. 5. Perform Isolated Iterative Development<br />
  6. 6. Generate Daily Builds of the projects<br />
  7. 7. Deployment from project environment<br />
  8. 8. Database Development Lifecycle<br />Establish the project environment<br />Perform isolated, iterative development<br />Build the project<br />Deploy from project environment<br />
  9. 9. Create a Database Project<br />New Project and Import Existing Schema<br />
  10. 10. Advantages of Database Project<br />Integration with Source Control<br />Integration with ALM and Database Development Lifecycle<br />Refactoring Support<br />Intellisence.<br />
  11. 11. Demo – Create and Deploy a Database<br />
  12. 12. Demo – Put your database under source control<br />
  13. 13. Demo – Put your database under source control<br />
  14. 14. Demo – Create Database Project by Importing from Exisiting Database<br />
  15. 15. Demo – Compare a Database Project to a Deployed Database<br />
  16. 16. Demo – Import Changes back to database project<br />
  17. 17. Demo – Add, Modify and Delete Database objects and scripts<br />
  18. 18. Demo – Use Data Generation Plans<br />
  19. 19. Demo Creating Database Project and Importing Schema<br />Import from database instance or from a script<br />After Import the schema is validated<br />iMentor Knowledge Services<br />
  20. 20. Demo – Refactoring Database Objects and Using Static Code Analysis<br />
  21. 21. Tips Refactoring<br />Import You Database Schema and Add to Source Control.<br />Remember Re-Factoring Means changes which may break existing interfaces provided by database<br />
  22. 22. Demo – Using Schema Comparison<br />iMentor Knowledge Services<br />
  23. 23. Demo – Using Data Comparison<br />iMentor Knowledge Services<br />
  24. 24. Demo – Using Data Generation Tool<br />
  25. 25. Overview of SQL Server Data Tier Application<br />Use with only SQL Server 2008 R2<br />Creates Special Unit of Deployment called DAC Package<br />DAC can be handed over to DBA by Developers who will later take core of the deployment of application<br />It contains all the database and instance objects used by the application<br />Facilities<br />T-SQL Editor<br />Intellisence<br />Static Code Analysis Features<br />Used for Department Level Applications which may not have a DBA Assigned to them<br />Database projects are mainly used for mission critical, business central applications with a DBA<br />
  26. 26. Demo - Creating SQL Server Data Tier Application<br />
  27. 27. Database Projects<br />Are targeted towards SQL Server like 2005, 2008 and 2008 R2, as well as 3rd Party Databases<br />Database Project -> Define User level database<br />Server Project -> Define Server Level Objects and master database<br />
  28. 28. Structure of a Database Project<br />Project Contains<br />Data Generation Plans<br />Schema Comparisons<br />Schema Objects<br />Scripts<br />Property Files -> Inside Properties Folder<br />Database.sqlcmdvars<br />Database.sqldeployment<br />Database.sqlpermissions<br />Database.sqlsettings<br />
  29. 29. Thank you and Q.A.<br />Please post your questions<br />You can also send in your questions to <br /><br />