SlideShare a Scribd company logo
1 of 31
Download to read offline
MSDN Events
Autumn, 2008

Building Applications with SQL
Server 2008
What Will We Cover?

•   SQL Server Spatial support
•   T-SQL Enhancements
•   Visual Studio integration
•   SQL CLR
•   Reporting Services
Helpful Experience

•   SQL Server database development
•   .NET Framework application development
•   Visual Studio 2008
•   Windows Presentation Foundation
•   ASP.NET
•   Microsoft Virtual Earth
•   OpenGIS
Agenda

• SQL Server 2008
  – New features
  – Enhancements
  – Programming
• Demos!
What is Spatial Data?

• Spatial data represents locations
   – Which properties overlap?
   – Which roads intersect property or each other?
   – How many stores/restaurants/houses/car dealerships are
     located within a geographical area?
• Represented by two primary data types
   – Geometry: small areas where curvature of the Earth isn’t so
     relevant when making calculations
       • Flat Earth model
       • X, Y coordinates
   – Geography: large areas where the curvature of the Earth does
     matter when making calculations
       • Round Earth model
       • Latitude and longitude coordinates
What is Spatial Data?

• You query for location information as you would any SQL
  Server data type
   – Data types dictated by the OpenGIS standard
   – Calculations easy to perform (“black box”)
Representing Spatial Data

• Geospatial data in SQL Server
   – Stored in a proprietary binary format
   – Can be input using simple text
       • Parse methods exist to convert the text into the internal storage
         format
   – Represents areas using
       •   Points
       •   Linestrings
       •   Polygons
       •   MultiPoints
       •   MultiLinestrings
       •   MultiPolygons
       •   GeomCollections
Representing Spatial Data

• Polygonal areas must be defined in counter-clockwise
  direction
   – Interior areas (“holes”) must be defined in clockwise direction
• Inherently support various calculations and methods
   – Spatial Reference ID (SRID) identifies ellipsoid used (flat/round,
     meters/feet)
   – Only instances with like SRID can be directly compared
Geographical Data

• GEOGRAPHY type has additional requirements
  – Coordinate order is longitude/latitude
  – A single GEOGRAPHY object cannot span more than a logical
    hemisphere
     • Will throw exceptions if too large
Demo

SQL Server Geospatial and
Virtual Earth
Enhancements to T-SQL

•   Table Value Parameters
•   New Date/Time types
•   Time zone awareness
•   New MERGE keyword
•   New shorthand notation
Table Value Parameters

• TVPs are used to insert/update multiple tables at one
  time
   – Multiple tables can be inserted/updated within a single
     transaction
   – MARS-like capability for writing
• ADO.NET updated to include support
   – New parameter type:       SqlDbType.Structured
Dates and Time

• Several new types added
   –   datetime2
   –   date
   –   time
   –   datetimeoffset
• New functions added
   – CONVERT
   – SYS* Functions
   – DATEDIFF
MERGE

• MERGE allows for insert, update, delete with one
  keyword
   – Merge two tables, source and target
   – Target table will be modified based on contents of source table
• Syntax and use can be complex!
   – Be sure to review SQL Server Books Online for more details
Shorthand Notation

• Allows you to declare a variable and assign a value in
  one line of code
   – More like contemporary programming languages, C# or Visual
     Basic .NET
Demo


T-SQL Enhancements
Visual Studio Integration

• Enhanced project types
   – Analysis Services
   – Reporting Services
• Entity Framework
Entity Framework

• Essentially an OR/M tool
• Models relational data using entities
   – Can model any relational data source for data access (provider
     may be required)
   – Application-specific domain
   – You can work at a higher level of abstraction
   – Appropriate amount of information returned
   – Lazy-loaded
• What is an entity?
   – Structurally like an object
       • Has scalars and relationships
       • Has identity
   – Represent nouns in your application domain
Demo


Visual Studio Integration
SQL CLR

• SQL Server has the ability to execute managed code
    –   Stored procedures
    –   Functions
    –   Aggregates
    –   Table value functions
    –   User-defined types
    –   Triggers
•   Visual Studio can manage both creation and deployment
•   SQL CLR is “off by default” for security reasons
•   Can be remotely debugged
•   With great power comes great responsibility
    – Your code executes in the SQL Server processing stream
Programming SQL CLR

• Visual Studio provides templates for the various SQL
  CLR constructs
   – Uses Database project type
   – Simply “add new” like any other item you might add
• Metadata controls SQL Server behavior
   – Attributes control programmatical type
       •   Microsoft.SqlServer.Server.SqlProcedure
       •   Microsoft.SqlServer.Server.SqlFunction
       •   Microsoft.SqlServer.Server.SqlUserDefinedAggregate
       •   Microsoft.SqlServer.Server.SqlTrigger
       •   Microsoft.SqlServer.Server.SqlUserDefinedType
Programming SQL CLR

• You write your logic using a .NET-supported language
• You work with other objects in the
  Microsoft.SqlServer.Server namespace to retrieve and
  return data
• Very ADO.NET-like, but not ADO.NET
• Can be assigned security levels
   – Safe, External, Unsafe
Demo


SQL CLR
Reporting Services

• SQL Server standard for reporting
   –   Managed enterprise reporting
   –   Ad-hoc reporting
   –   Embedded reporting
   –   Web-based reporting
• Reports can be formatted in a variety of ways
   – PDF
   – Word 2007
   – HTML
• Reports are exposed via a Web Service
   – Can be integrated with SharePoint
   – Dependency on IIS removed (uses http.sys)
Programming Reports

• Strong designer and wizard support in Visual Studio
• Enhanced configuration and administration tool
• Design reports in Visual Studio 2008 SP1
   – Query for data
   – Assign query results to report
   – Design report style
       • Colors
       • Fonts
   – Deploy report
       • Web Service
       • SharePoint Services
• Wizard available for initial report design
Demo


Reporting Services
For More Information

• Visit MSDN at msdn.microsoft.com
Microsoft Press Publications




         For the latest titles, visit
www.microsoft.com/learning/books/devtools
Non-Microsoft Publications




These books can be found and purchased at
 all major book stores and online retailers
RAMP-UP
Are you ready to take your career as a developer to the next level?
Looking for a learning experience that is designed for you?

Join MSDN Ramp Up and Summit Your Career!
MSDN Ramp Up is your online source that provides free training and technical resources to help take your
development skills to the next level.
• Step-by-Step training plans to build your development skills.
• Premium technical content created by expert developers for developers.
• Access to valuable online e-learning, e-references, and virtual labs.
• 50% discount on select certification exams and 30% discount on Microsoft Press training kits.

Join Ramp Up for free today!
Go to: http://msdn.microsoft.com/rampup
Sql 2008 For Developers

More Related Content

What's hot

Architecting the ArcGIS Platform - Technical - Esri UK Annual Conference 2017
Architecting the ArcGIS Platform - Technical - Esri UK Annual Conference 2017Architecting the ArcGIS Platform - Technical - Esri UK Annual Conference 2017
Architecting the ArcGIS Platform - Technical - Esri UK Annual Conference 2017Esri UK
 
Advanced Analytics - Smart Analytics - Esri UK Annual Conference 2017
Advanced Analytics - Smart Analytics - Esri UK Annual Conference 2017Advanced Analytics - Smart Analytics - Esri UK Annual Conference 2017
Advanced Analytics - Smart Analytics - Esri UK Annual Conference 2017Esri UK
 
Analytics for Smarter Working in the Field - Smart Working - Esri UK Annual C...
Analytics for Smarter Working in the Field - Smart Working - Esri UK Annual C...Analytics for Smarter Working in the Field - Smart Working - Esri UK Annual C...
Analytics for Smarter Working in the Field - Smart Working - Esri UK Annual C...Esri UK
 
WHYs and HOWs of Power Query to Power BI
WHYs and HOWs of Power Query to Power BIWHYs and HOWs of Power Query to Power BI
WHYs and HOWs of Power Query to Power BIIslam Sylvia
 
ZWCAD vs AutoCAD
ZWCAD vs AutoCADZWCAD vs AutoCAD
ZWCAD vs AutoCADFayaz Memon
 

What's hot (6)

Architecting the ArcGIS Platform - Technical - Esri UK Annual Conference 2017
Architecting the ArcGIS Platform - Technical - Esri UK Annual Conference 2017Architecting the ArcGIS Platform - Technical - Esri UK Annual Conference 2017
Architecting the ArcGIS Platform - Technical - Esri UK Annual Conference 2017
 
Advanced Analytics - Smart Analytics - Esri UK Annual Conference 2017
Advanced Analytics - Smart Analytics - Esri UK Annual Conference 2017Advanced Analytics - Smart Analytics - Esri UK Annual Conference 2017
Advanced Analytics - Smart Analytics - Esri UK Annual Conference 2017
 
Html 5 Overview
Html 5 OverviewHtml 5 Overview
Html 5 Overview
 
Analytics for Smarter Working in the Field - Smart Working - Esri UK Annual C...
Analytics for Smarter Working in the Field - Smart Working - Esri UK Annual C...Analytics for Smarter Working in the Field - Smart Working - Esri UK Annual C...
Analytics for Smarter Working in the Field - Smart Working - Esri UK Annual C...
 
WHYs and HOWs of Power Query to Power BI
WHYs and HOWs of Power Query to Power BIWHYs and HOWs of Power Query to Power BI
WHYs and HOWs of Power Query to Power BI
 
ZWCAD vs AutoCAD
ZWCAD vs AutoCADZWCAD vs AutoCAD
ZWCAD vs AutoCAD
 

Viewers also liked

Silverlight 2 For Developers
Silverlight 2 For DevelopersSilverlight 2 For Developers
Silverlight 2 For DevelopersMithun T. Dhar
 
Michael atkinson holographic storage
Michael atkinson holographic storageMichael atkinson holographic storage
Michael atkinson holographic storagePALAK_SINGH
 
1 01 Computer Components
1 01 Computer Components1 01 Computer Components
1 01 Computer Componentsjasonmammano
 
Software components
Software componentsSoftware components
Software componentsAmir_Mukhtar
 

Viewers also liked (6)

Silverlight 2 For Developers
Silverlight 2 For DevelopersSilverlight 2 For Developers
Silverlight 2 For Developers
 
Microsoft Office Applications
Microsoft Office ApplicationsMicrosoft Office Applications
Microsoft Office Applications
 
Office And Vsto 200
Office And Vsto 200Office And Vsto 200
Office And Vsto 200
 
Michael atkinson holographic storage
Michael atkinson holographic storageMichael atkinson holographic storage
Michael atkinson holographic storage
 
1 01 Computer Components
1 01 Computer Components1 01 Computer Components
1 01 Computer Components
 
Software components
Software componentsSoftware components
Software components
 

Similar to Sql 2008 For Developers

Building Applications for SQL Server 2008
Building Applications for SQL Server 2008Building Applications for SQL Server 2008
Building Applications for SQL Server 2008Dave Bost
 
SQL Server 2008 for Developers
SQL Server 2008 for DevelopersSQL Server 2008 for Developers
SQL Server 2008 for Developersllangit
 
SQL Server 2008 Migration
SQL Server 2008 MigrationSQL Server 2008 Migration
SQL Server 2008 MigrationMark Ginnebaugh
 
Lessons from Building Large-Scale, Multi-Cloud, SaaS Software at Databricks
Lessons from Building Large-Scale, Multi-Cloud, SaaS Software at DatabricksLessons from Building Large-Scale, Multi-Cloud, SaaS Software at Databricks
Lessons from Building Large-Scale, Multi-Cloud, SaaS Software at DatabricksDatabricks
 
What's new in SQL Server 2017
What's new in SQL Server 2017What's new in SQL Server 2017
What's new in SQL Server 2017Hasan Savran
 
APIs and SDKs: Breaking Into and Succeeding in a Specialty Market
APIs and SDKs: Breaking Into and Succeeding in a Specialty MarketAPIs and SDKs: Breaking Into and Succeeding in a Specialty Market
APIs and SDKs: Breaking Into and Succeeding in a Specialty MarketScott Abel
 
Android Bootcamp
Android   BootcampAndroid   Bootcamp
Android Bootcampahkjsdcsadc
 
SQLite3
SQLite3SQLite3
SQLite3cltru
 
U-SQL - Azure Data Lake Analytics for Developers
U-SQL - Azure Data Lake Analytics for DevelopersU-SQL - Azure Data Lake Analytics for Developers
U-SQL - Azure Data Lake Analytics for DevelopersMichael Rys
 
ADL/U-SQL Introduction (SQLBits 2016)
ADL/U-SQL Introduction (SQLBits 2016)ADL/U-SQL Introduction (SQLBits 2016)
ADL/U-SQL Introduction (SQLBits 2016)Michael Rys
 
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)Bob Ward
 
Predictive Analysis using Microsoft SQL Server R Services
Predictive Analysis using Microsoft SQL Server R ServicesPredictive Analysis using Microsoft SQL Server R Services
Predictive Analysis using Microsoft SQL Server R ServicesFisnik Doko
 
KoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginners
KoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginnersKoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginners
KoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginnersTobias Koprowski
 
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAMPROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAMSaraswathiRamalingam
 
Olaf_Senz_Resume
Olaf_Senz_ResumeOlaf_Senz_Resume
Olaf_Senz_ResumeOlaf Senz
 
(ATS6-DEV02) Web Application Strategies
(ATS6-DEV02) Web Application Strategies(ATS6-DEV02) Web Application Strategies
(ATS6-DEV02) Web Application StrategiesBIOVIA
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSPC Adriatics
 
Monitoring Serverless Applications with Datadog
Monitoring Serverless Applications with DatadogMonitoring Serverless Applications with Datadog
Monitoring Serverless Applications with DatadogDevOps.com
 

Similar to Sql 2008 For Developers (20)

Building Applications for SQL Server 2008
Building Applications for SQL Server 2008Building Applications for SQL Server 2008
Building Applications for SQL Server 2008
 
SQL Server 2008 for Developers
SQL Server 2008 for DevelopersSQL Server 2008 for Developers
SQL Server 2008 for Developers
 
SQL Server 2008 Migration
SQL Server 2008 MigrationSQL Server 2008 Migration
SQL Server 2008 Migration
 
Lessons from Building Large-Scale, Multi-Cloud, SaaS Software at Databricks
Lessons from Building Large-Scale, Multi-Cloud, SaaS Software at DatabricksLessons from Building Large-Scale, Multi-Cloud, SaaS Software at Databricks
Lessons from Building Large-Scale, Multi-Cloud, SaaS Software at Databricks
 
What's new in SQL Server 2017
What's new in SQL Server 2017What's new in SQL Server 2017
What's new in SQL Server 2017
 
APIs and SDKs: Breaking Into and Succeeding in a Specialty Market
APIs and SDKs: Breaking Into and Succeeding in a Specialty MarketAPIs and SDKs: Breaking Into and Succeeding in a Specialty Market
APIs and SDKs: Breaking Into and Succeeding in a Specialty Market
 
Android Bootcamp
Android   BootcampAndroid   Bootcamp
Android Bootcamp
 
SQLite3
SQLite3SQLite3
SQLite3
 
U-SQL - Azure Data Lake Analytics for Developers
U-SQL - Azure Data Lake Analytics for DevelopersU-SQL - Azure Data Lake Analytics for Developers
U-SQL - Azure Data Lake Analytics for Developers
 
ADL/U-SQL Introduction (SQLBits 2016)
ADL/U-SQL Introduction (SQLBits 2016)ADL/U-SQL Introduction (SQLBits 2016)
ADL/U-SQL Introduction (SQLBits 2016)
 
Introduction to azure document db
Introduction to azure document dbIntroduction to azure document db
Introduction to azure document db
 
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
 
Predictive Analysis using Microsoft SQL Server R Services
Predictive Analysis using Microsoft SQL Server R ServicesPredictive Analysis using Microsoft SQL Server R Services
Predictive Analysis using Microsoft SQL Server R Services
 
KoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginners
KoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginnersKoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginners
KoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginners
 
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAMPROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
 
Olaf_Senz_Resume
Olaf_Senz_ResumeOlaf_Senz_Resume
Olaf_Senz_Resume
 
(ATS6-DEV02) Web Application Strategies
(ATS6-DEV02) Web Application Strategies(ATS6-DEV02) Web Application Strategies
(ATS6-DEV02) Web Application Strategies
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi Vončina
 
Database Schema Management & Deployment using SQL Server Data Tools (SSDT)
Database Schema Management & Deployment using SQL Server Data Tools (SSDT)Database Schema Management & Deployment using SQL Server Data Tools (SSDT)
Database Schema Management & Deployment using SQL Server Data Tools (SSDT)
 
Monitoring Serverless Applications with Datadog
Monitoring Serverless Applications with DatadogMonitoring Serverless Applications with Datadog
Monitoring Serverless Applications with Datadog
 

More from Mithun T. Dhar

Concur State of Business Travel 2016
Concur State of Business Travel 2016Concur State of Business Travel 2016
Concur State of Business Travel 2016Mithun T. Dhar
 
Seattle Technical Forum-Insights of Travel
Seattle Technical Forum-Insights of TravelSeattle Technical Forum-Insights of Travel
Seattle Technical Forum-Insights of TravelMithun T. Dhar
 
ProgrammableWeb-API Conf-SF 2014
ProgrammableWeb-API Conf-SF 2014ProgrammableWeb-API Conf-SF 2014
ProgrammableWeb-API Conf-SF 2014Mithun T. Dhar
 
Concur-Evernote Conference 2014
Concur-Evernote Conference 2014Concur-Evernote Conference 2014
Concur-Evernote Conference 2014Mithun T. Dhar
 
Concur-Silicon Valley Code Camp - Mithun Dhar
Concur-Silicon Valley Code Camp - Mithun DharConcur-Silicon Valley Code Camp - Mithun Dhar
Concur-Silicon Valley Code Camp - Mithun DharMithun T. Dhar
 
Concur by the numbers...
Concur by the numbers...Concur by the numbers...
Concur by the numbers...Mithun T. Dhar
 
Session 7 - Integrating share point with silverlight firestarter
Session 7 - Integrating share point with silverlight firestarterSession 7 - Integrating share point with silverlight firestarter
Session 7 - Integrating share point with silverlight firestarterMithun T. Dhar
 
Session6-SharePoint and Azure- steve fox-windows-and_azure_spfs
Session6-SharePoint and Azure- steve fox-windows-and_azure_spfsSession6-SharePoint and Azure- steve fox-windows-and_azure_spfs
Session6-SharePoint and Azure- steve fox-windows-and_azure_spfsMithun T. Dhar
 
Session 5-SharePoint with Office-Donovan Follette
Session 5-SharePoint with Office-Donovan FolletteSession 5-SharePoint with Office-Donovan Follette
Session 5-SharePoint with Office-Donovan FolletteMithun T. Dhar
 
Session4-Sharepoint Online-chrismayo
Session4-Sharepoint Online-chrismayoSession4-Sharepoint Online-chrismayo
Session4-Sharepoint Online-chrismayoMithun T. Dhar
 
Session 3 - Developer Tools-Sharepoint firestarter-paul yuknewicz
Session 3 - Developer Tools-Sharepoint firestarter-paul yuknewiczSession 3 - Developer Tools-Sharepoint firestarter-paul yuknewicz
Session 3 - Developer Tools-Sharepoint firestarter-paul yuknewiczMithun T. Dhar
 
SharePoint FireStarter - Session 1 - Keynote - Eric Swift
SharePoint FireStarter - Session 1 - Keynote - Eric SwiftSharePoint FireStarter - Session 1 - Keynote - Eric Swift
SharePoint FireStarter - Session 1 - Keynote - Eric SwiftMithun T. Dhar
 
SeattleUniv-IntroductionToCloudComputing-WinsowsAzure101
SeattleUniv-IntroductionToCloudComputing-WinsowsAzure101SeattleUniv-IntroductionToCloudComputing-WinsowsAzure101
SeattleUniv-IntroductionToCloudComputing-WinsowsAzure101Mithun T. Dhar
 
SharePoint 2010 developer overview (in Visual Studio 2010)
SharePoint 2010 developer overview (in Visual Studio 2010)SharePoint 2010 developer overview (in Visual Studio 2010)
SharePoint 2010 developer overview (in Visual Studio 2010)Mithun T. Dhar
 
Azure Deployment(Seattle)
Azure Deployment(Seattle)Azure Deployment(Seattle)
Azure Deployment(Seattle)Mithun T. Dhar
 
Introduction To Cloud Computing Winsows Azure101
Introduction To Cloud Computing Winsows Azure101Introduction To Cloud Computing Winsows Azure101
Introduction To Cloud Computing Winsows Azure101Mithun T. Dhar
 
Taking_Your-Application_To_The_Next_Level - Windows 7
Taking_Your-Application_To_The_Next_Level - Windows 7Taking_Your-Application_To_The_Next_Level - Windows 7
Taking_Your-Application_To_The_Next_Level - Windows 7Mithun T. Dhar
 
Building_The_Next-Generation_UI - Multitouch and Ribbon
Building_The_Next-Generation_UI - Multitouch and RibbonBuilding_The_Next-Generation_UI - Multitouch and Ribbon
Building_The_Next-Generation_UI - Multitouch and RibbonMithun T. Dhar
 
Beyond_Human_Interaction - Sensor and Location Platform
Beyond_Human_Interaction - Sensor and Location PlatformBeyond_Human_Interaction - Sensor and Location Platform
Beyond_Human_Interaction - Sensor and Location PlatformMithun T. Dhar
 

More from Mithun T. Dhar (20)

Concur State of Business Travel 2016
Concur State of Business Travel 2016Concur State of Business Travel 2016
Concur State of Business Travel 2016
 
Seattle Technical Forum-Insights of Travel
Seattle Technical Forum-Insights of TravelSeattle Technical Forum-Insights of Travel
Seattle Technical Forum-Insights of Travel
 
Concur-Ford Hackathon
Concur-Ford HackathonConcur-Ford Hackathon
Concur-Ford Hackathon
 
ProgrammableWeb-API Conf-SF 2014
ProgrammableWeb-API Conf-SF 2014ProgrammableWeb-API Conf-SF 2014
ProgrammableWeb-API Conf-SF 2014
 
Concur-Evernote Conference 2014
Concur-Evernote Conference 2014Concur-Evernote Conference 2014
Concur-Evernote Conference 2014
 
Concur-Silicon Valley Code Camp - Mithun Dhar
Concur-Silicon Valley Code Camp - Mithun DharConcur-Silicon Valley Code Camp - Mithun Dhar
Concur-Silicon Valley Code Camp - Mithun Dhar
 
Concur by the numbers...
Concur by the numbers...Concur by the numbers...
Concur by the numbers...
 
Session 7 - Integrating share point with silverlight firestarter
Session 7 - Integrating share point with silverlight firestarterSession 7 - Integrating share point with silverlight firestarter
Session 7 - Integrating share point with silverlight firestarter
 
Session6-SharePoint and Azure- steve fox-windows-and_azure_spfs
Session6-SharePoint and Azure- steve fox-windows-and_azure_spfsSession6-SharePoint and Azure- steve fox-windows-and_azure_spfs
Session6-SharePoint and Azure- steve fox-windows-and_azure_spfs
 
Session 5-SharePoint with Office-Donovan Follette
Session 5-SharePoint with Office-Donovan FolletteSession 5-SharePoint with Office-Donovan Follette
Session 5-SharePoint with Office-Donovan Follette
 
Session4-Sharepoint Online-chrismayo
Session4-Sharepoint Online-chrismayoSession4-Sharepoint Online-chrismayo
Session4-Sharepoint Online-chrismayo
 
Session 3 - Developer Tools-Sharepoint firestarter-paul yuknewicz
Session 3 - Developer Tools-Sharepoint firestarter-paul yuknewiczSession 3 - Developer Tools-Sharepoint firestarter-paul yuknewicz
Session 3 - Developer Tools-Sharepoint firestarter-paul yuknewicz
 
SharePoint FireStarter - Session 1 - Keynote - Eric Swift
SharePoint FireStarter - Session 1 - Keynote - Eric SwiftSharePoint FireStarter - Session 1 - Keynote - Eric Swift
SharePoint FireStarter - Session 1 - Keynote - Eric Swift
 
SeattleUniv-IntroductionToCloudComputing-WinsowsAzure101
SeattleUniv-IntroductionToCloudComputing-WinsowsAzure101SeattleUniv-IntroductionToCloudComputing-WinsowsAzure101
SeattleUniv-IntroductionToCloudComputing-WinsowsAzure101
 
SharePoint 2010 developer overview (in Visual Studio 2010)
SharePoint 2010 developer overview (in Visual Studio 2010)SharePoint 2010 developer overview (in Visual Studio 2010)
SharePoint 2010 developer overview (in Visual Studio 2010)
 
Azure Deployment(Seattle)
Azure Deployment(Seattle)Azure Deployment(Seattle)
Azure Deployment(Seattle)
 
Introduction To Cloud Computing Winsows Azure101
Introduction To Cloud Computing Winsows Azure101Introduction To Cloud Computing Winsows Azure101
Introduction To Cloud Computing Winsows Azure101
 
Taking_Your-Application_To_The_Next_Level - Windows 7
Taking_Your-Application_To_The_Next_Level - Windows 7Taking_Your-Application_To_The_Next_Level - Windows 7
Taking_Your-Application_To_The_Next_Level - Windows 7
 
Building_The_Next-Generation_UI - Multitouch and Ribbon
Building_The_Next-Generation_UI - Multitouch and RibbonBuilding_The_Next-Generation_UI - Multitouch and Ribbon
Building_The_Next-Generation_UI - Multitouch and Ribbon
 
Beyond_Human_Interaction - Sensor and Location Platform
Beyond_Human_Interaction - Sensor and Location PlatformBeyond_Human_Interaction - Sensor and Location Platform
Beyond_Human_Interaction - Sensor and Location Platform
 

Recently uploaded

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Recently uploaded (20)

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

Sql 2008 For Developers

  • 1. MSDN Events Autumn, 2008 Building Applications with SQL Server 2008
  • 2. What Will We Cover? • SQL Server Spatial support • T-SQL Enhancements • Visual Studio integration • SQL CLR • Reporting Services
  • 3. Helpful Experience • SQL Server database development • .NET Framework application development • Visual Studio 2008 • Windows Presentation Foundation • ASP.NET • Microsoft Virtual Earth • OpenGIS
  • 4. Agenda • SQL Server 2008 – New features – Enhancements – Programming • Demos!
  • 5. What is Spatial Data? • Spatial data represents locations – Which properties overlap? – Which roads intersect property or each other? – How many stores/restaurants/houses/car dealerships are located within a geographical area? • Represented by two primary data types – Geometry: small areas where curvature of the Earth isn’t so relevant when making calculations • Flat Earth model • X, Y coordinates – Geography: large areas where the curvature of the Earth does matter when making calculations • Round Earth model • Latitude and longitude coordinates
  • 6. What is Spatial Data? • You query for location information as you would any SQL Server data type – Data types dictated by the OpenGIS standard – Calculations easy to perform (“black box”)
  • 7. Representing Spatial Data • Geospatial data in SQL Server – Stored in a proprietary binary format – Can be input using simple text • Parse methods exist to convert the text into the internal storage format – Represents areas using • Points • Linestrings • Polygons • MultiPoints • MultiLinestrings • MultiPolygons • GeomCollections
  • 8. Representing Spatial Data • Polygonal areas must be defined in counter-clockwise direction – Interior areas (“holes”) must be defined in clockwise direction • Inherently support various calculations and methods – Spatial Reference ID (SRID) identifies ellipsoid used (flat/round, meters/feet) – Only instances with like SRID can be directly compared
  • 9. Geographical Data • GEOGRAPHY type has additional requirements – Coordinate order is longitude/latitude – A single GEOGRAPHY object cannot span more than a logical hemisphere • Will throw exceptions if too large
  • 10. Demo SQL Server Geospatial and Virtual Earth
  • 11. Enhancements to T-SQL • Table Value Parameters • New Date/Time types • Time zone awareness • New MERGE keyword • New shorthand notation
  • 12. Table Value Parameters • TVPs are used to insert/update multiple tables at one time – Multiple tables can be inserted/updated within a single transaction – MARS-like capability for writing • ADO.NET updated to include support – New parameter type: SqlDbType.Structured
  • 13. Dates and Time • Several new types added – datetime2 – date – time – datetimeoffset • New functions added – CONVERT – SYS* Functions – DATEDIFF
  • 14. MERGE • MERGE allows for insert, update, delete with one keyword – Merge two tables, source and target – Target table will be modified based on contents of source table • Syntax and use can be complex! – Be sure to review SQL Server Books Online for more details
  • 15. Shorthand Notation • Allows you to declare a variable and assign a value in one line of code – More like contemporary programming languages, C# or Visual Basic .NET
  • 17. Visual Studio Integration • Enhanced project types – Analysis Services – Reporting Services • Entity Framework
  • 18. Entity Framework • Essentially an OR/M tool • Models relational data using entities – Can model any relational data source for data access (provider may be required) – Application-specific domain – You can work at a higher level of abstraction – Appropriate amount of information returned – Lazy-loaded • What is an entity? – Structurally like an object • Has scalars and relationships • Has identity – Represent nouns in your application domain
  • 20. SQL CLR • SQL Server has the ability to execute managed code – Stored procedures – Functions – Aggregates – Table value functions – User-defined types – Triggers • Visual Studio can manage both creation and deployment • SQL CLR is “off by default” for security reasons • Can be remotely debugged • With great power comes great responsibility – Your code executes in the SQL Server processing stream
  • 21. Programming SQL CLR • Visual Studio provides templates for the various SQL CLR constructs – Uses Database project type – Simply “add new” like any other item you might add • Metadata controls SQL Server behavior – Attributes control programmatical type • Microsoft.SqlServer.Server.SqlProcedure • Microsoft.SqlServer.Server.SqlFunction • Microsoft.SqlServer.Server.SqlUserDefinedAggregate • Microsoft.SqlServer.Server.SqlTrigger • Microsoft.SqlServer.Server.SqlUserDefinedType
  • 22. Programming SQL CLR • You write your logic using a .NET-supported language • You work with other objects in the Microsoft.SqlServer.Server namespace to retrieve and return data • Very ADO.NET-like, but not ADO.NET • Can be assigned security levels – Safe, External, Unsafe
  • 24. Reporting Services • SQL Server standard for reporting – Managed enterprise reporting – Ad-hoc reporting – Embedded reporting – Web-based reporting • Reports can be formatted in a variety of ways – PDF – Word 2007 – HTML • Reports are exposed via a Web Service – Can be integrated with SharePoint – Dependency on IIS removed (uses http.sys)
  • 25. Programming Reports • Strong designer and wizard support in Visual Studio • Enhanced configuration and administration tool • Design reports in Visual Studio 2008 SP1 – Query for data – Assign query results to report – Design report style • Colors • Fonts – Deploy report • Web Service • SharePoint Services • Wizard available for initial report design
  • 27. For More Information • Visit MSDN at msdn.microsoft.com
  • 28. Microsoft Press Publications For the latest titles, visit www.microsoft.com/learning/books/devtools
  • 29. Non-Microsoft Publications These books can be found and purchased at all major book stores and online retailers
  • 30. RAMP-UP Are you ready to take your career as a developer to the next level? Looking for a learning experience that is designed for you? Join MSDN Ramp Up and Summit Your Career! MSDN Ramp Up is your online source that provides free training and technical resources to help take your development skills to the next level. • Step-by-Step training plans to build your development skills. • Premium technical content created by expert developers for developers. • Access to valuable online e-learning, e-references, and virtual labs. • 50% discount on select certification exams and 30% discount on Microsoft Press training kits. Join Ramp Up for free today! Go to: http://msdn.microsoft.com/rampup