SlideShare a Scribd company logo
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 2017
Esri 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 2017
Esri UK
 
Html 5 Overview
Html 5 OverviewHtml 5 Overview
Html 5 Overview
Aditi Rustagi
 
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 BI
Islam Sylvia
 
ZWCAD vs AutoCAD
ZWCAD vs AutoCADZWCAD vs AutoCAD
ZWCAD vs AutoCAD
Fayaz 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 Developers
Mithun T. Dhar
 
Microsoft Office Applications
Microsoft Office ApplicationsMicrosoft Office Applications
Microsoft Office Applications
Montgomery County Public Library
 
Office And Vsto 200
Office And Vsto 200Office And Vsto 200
Office And Vsto 200
Mithun T. Dhar
 
Michael atkinson holographic storage
Michael atkinson holographic storageMichael atkinson holographic storage
Michael atkinson holographic storage
PALAK_SINGH
 
1 01 Computer Components
1 01 Computer Components1 01 Computer Components
1 01 Computer Componentsjasonmammano
 
Software components
Software componentsSoftware components
Software components
Amir_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 2008
Dave Bost
 
SQL Server 2008 for Developers
SQL Server 2008 for DevelopersSQL Server 2008 for Developers
SQL Server 2008 for Developers
llangit
 
SQL Server 2008 Migration
SQL Server 2008 MigrationSQL Server 2008 Migration
SQL Server 2008 Migration
Mark 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 Databricks
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
Hasan 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 Market
Scott Abel
 
Android Bootcamp
Android   BootcampAndroid   Bootcamp
Android Bootcampahkjsdcsadc
 
SQLite3
SQLite3SQLite3
SQLite3
cltru
 
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
Michael 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
 
Introduction to azure document db
Introduction to azure document dbIntroduction to azure document db
Introduction to azure document db
Antonios Chatzipavlis
 
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 Services
Fisnik Doko
 
KoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginners
KoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginnersKoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginners
KoprowskiT_HUG-MSSQL_AdHocMaintenancePlansForBeginners
Tobias Koprowski
 
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAMPROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
PROGRAMMING USING C#.NET SARASWATHI RAMALINGAM
SaraswathiRamalingam
 
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 Strategies
BIOVIA
 
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
SPC Adriatics
 
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)
Microsoft TechNet - Belgium and Luxembourg
 
Monitoring Serverless Applications with Datadog
Monitoring Serverless Applications with DatadogMonitoring Serverless Applications with Datadog
Monitoring Serverless Applications with Datadog
DevOps.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 2016
Mithun T. Dhar
 
Seattle Technical Forum-Insights of Travel
Seattle Technical Forum-Insights of TravelSeattle Technical Forum-Insights of Travel
Seattle Technical Forum-Insights of Travel
Mithun T. Dhar
 
Concur-Ford Hackathon
Concur-Ford HackathonConcur-Ford Hackathon
Concur-Ford Hackathon
Mithun T. Dhar
 
ProgrammableWeb-API Conf-SF 2014
ProgrammableWeb-API Conf-SF 2014ProgrammableWeb-API Conf-SF 2014
ProgrammableWeb-API Conf-SF 2014
Mithun T. Dhar
 
Concur-Evernote Conference 2014
Concur-Evernote Conference 2014Concur-Evernote Conference 2014
Concur-Evernote Conference 2014
Mithun 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 Dhar
Mithun 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 yuknewicz
Mithun 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 Swift
Mithun 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 Azure101
Mithun 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 7
Mithun 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 Ribbon
Mithun 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 Platform
Mithun 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

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 

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