Presentation is loading. Please wait.

Presentation is loading. Please wait.

Developing SQL/Server database in Visual Studio Introducing SQL /Server Data Tools Peter Lu.Net Practices Director Principle Architect Nexient March 19.

Similar presentations


Presentation on theme: "Developing SQL/Server database in Visual Studio Introducing SQL /Server Data Tools Peter Lu.Net Practices Director Principle Architect Nexient March 19."— Presentation transcript:

1 Developing SQL/Server database in Visual Studio Introducing SQL /Server Data Tools Peter Lu.Net Practices Director Principle Architect Nexient March 19 2016

2 Agenda Brief Introduction about myself Brief Introduction about Nexient SSDT, what is it? Developing SQL/Server database in SSDT, what are the benefits? Managing SQL/Server database in SSDT, what does it mean to me? Managing post deployment scripts with Database object in SSDT, what does it mean to unit testing? For existing database, how to start? Conclusion Blogs Q & A

3 About me Started working on relational database since 1993 Touched Oracle, Sybase, Informix and mostly SQL/Server Working on Microsoft platform since 1995 (VB3) Started working on.Net since 1.0 and VS2002 Started working on C# as soon as I got hold of.Net Expert in WCF, WPF, ASP.Net and Enterprise Library Expert in MVC and MVVM patterns MCDBA SQL/Server Expert in Data model design and SQL/Server Worked on Data model design using ER-Win since 1993. Working as.Net Practices Director at Nexient Ann Arbor Michigan Certified with C# in Visual Studio 2012 ( 70-483) in Jan 2013.

4 Nexient Confidential 4 Systems in Motion is now Nexient 4 Agile Delivery centers 2010 Launched 500+ People Strong 56% Annual Average Growth  Pioneer in Onshore Agile Software Development @Scale with Midwest deliver centers  Proven track record of excellence in technology innovation and software delivery  Leaders in building and developing a talent base Nexient is the largest Pure-Play Domestic Technology Services Provider PROVEN BUSINESS MODEL FOR UNBEATABLE VALUE

5 MS released a project template call “Database Project”. can be used to manage any RDBMS database with OLEDB driver (Oracle, MySQL etc. of course including SQL/Server) MS offered SQL/Server project template under “Team Edition for Database Professionals GDR” which was designed to manage SQL/Server database in a much more efficient way. This was the first time when we could manage SQL/Server database objects from within Visual Studio. It offered build / deployment, and data scripts functionality. A bit about the history(Visual Studio 2005)

6 In Visual Studio 2008, MS released “SQL/Server Project” template under Microsoft Visual Studio Team system 2008 Database edition” A bit about the history (Visual Studio 2008)

7 With Microsoft® Visual Studio Team System 2008 Database Edition GDR R2, MS provided the support for SQL/Server 2008 / SQL/Server 2008 R2 in Visual Studio 2008 Click here for details.here A bit about the history (Visual Studio 2008)

8 In Visual Studio 2010, MS further developed the database capability by adding one more project template “SQL/Server 200x Server Project” in additional to “SQL/Server 200x database Project” and provided some good Wizards –SQL/Server 200x database Project » Is designed to manage database objects – SQL/Server 200x Server Project » Is designed to manage database server objects In Visual Studio 2010, MS discontinued “Database project” project template. A bit about the history(Visual Studio 2010)

9 SQL/Server Project in Visual Studio Where is it in Visual Studio 2010 (Database Project)

10 SSDT in Visual Studio 2015/2013

11 Starting from Visual Studio 2012/2013 and SQL Server 2012, Microsoft remarketed the “database project” as an independent product “SSDT, and made it free for all. SQL/Server Data Tools for Visual Studio 2010 SQL Server Data Tools for Visual Studio 2012 Microsoft SQL Server Data Tools Business Intelligence for Visual Studio 2013 Microsoft SQL Server Data Tools Business Intelligence for Visual Studio 2013 SQL Server Data Tools (SSDT for VS2015) SQL/Server Data Tool

12 SSTD, what does it do ? It provides an environment where we can develop/ manage and version control database objects including (but not limited to) –Tables, Views –Stored procedures, triggers –CLR assemblies –Schemas It provides build processes to verify the integrity of the database when changes are made to database objects It provides deployment processes to manage database creation, delta deployment, database schema comparison. It provides post/ prior deployment script execution for populating data to the database. It provides project Wizards for reversing engine to establish database project from actual database or database script files. It provides 2 way sync operation on database schema

13 What does it mean to me as a database developer? I can easily establish a database project and version control script files of database objects from any existing database. I can design database schema and version control the script files for database objects (tables, views, triggers, functions etc…) I can verify my changes with all other database objects by building the project before deploying the changes to any instance of the database. I can automate the deployment process by using the deployment feature. (I no longer need to manually prepare the deployment script when changes are made to the database schema)

14 What does it mean to me if I am in charge of deployment process Manually maintaining the incremental script will become a thing of the past. I can run the deployment process on the fly or generate the deployment script and hand it to someone to run it. I can use post deployment scripts to generate data for the database. I can specify different deployment configuration for different regions (Development, Test, Staging and production etc.) I can develop my database object within the same solution where I work on my.Net program.

15 Code Analysis for SQL Programmability

16 Wizard is your best friend Visual Studio 2015 supports –SQL/Server 2000 –SQL/Server 2005 –SQL/Server 2008 –SQL/Server 2012 –SQL/Server 2014 –SQL/Server Azure For an existing database, how to start?

17 Demo time Build a new empty database project Build a new database project based on a database instance Make changes in the project and deploy the changes to the database. Build data using Post deployment data scripts Create database instance using database project Manage multiple configurations

18 Declarative model and database development Integrated tools with modern language services Connected and disconnected (offline) with local testing Target SQL/Server up to SQL/server 2014 and SQL Azure Detecting and managing database object changes Application development integration with database What’s New in SSDT for VS2015

19 what if I work on Oracle database? SSDT for Oracle

20 Online resource & Contact Info http://peterluzc.blogspot.com/ http://spellingchampionapp.blogspot.com/ http://peterludotnet.blogspot.com/ http://peterlusql.blogspot.com/ Email : PeterLuZC@Gmail.comPeterLuZC@Gmail.com Facebook: PeterLuZC@Gmail.comPeterLuZC@Gmail.com Tweet: @PeterLuZC LinkedIn http://www.linkedin.com/in/peterluzchttp://www.linkedin.com/in/peterluzc

21 Potential future Topics on SQL/Server SQL database on the Cloud (Azure) First look at SQL/Server 2014 new features.Net CLR functions in SQL/Server

22 Q & A time on SSDT


Download ppt "Developing SQL/Server database in Visual Studio Introducing SQL /Server Data Tools Peter Lu.Net Practices Director Principle Architect Nexient March 19."

Similar presentations


Ads by Google