SQL Server 2008 for Developers

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Notes on slide 1

    Hello and Welcome to this MSDN session on “Building Applications with SQL Server2008

    4 Favorites

    SQL Server 2008 for Developers - Presentation Transcript

    1. Building Applications with SQL Server 2008 Lynn Langit http://blogs.msdn.com/SoCalDevGal
    2. What Will We cover?
      • SQL Server Spatial support
      • T-SQL Enhancements
      • Visual Studio integration
      • SQL CLR
      • Reporting Services
    3. What is Spatial Data?
      • Spatial data represents locations
        • 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
          • Flat Earth model or X, Y coordinates
        • Geography : large areas where the curvature of the Earth does matter
          • Round Earth model or Latitude and longitude coordinates
      • You query for location information as you would any SQL Server data type
        • Data types dictated by the OpenGIS standard
    4. Representing Spatial Data
      • Stored in proprietary binary format
        • Can be input using simple text ( Parse methods convert text into internal storage format)
        • Represents areas using
          • Points, Line strings, Polygons
          • Multi Points, Multi Line strings, Multi Polygons
          • Geom Collection
      • Areas must be defined in counter-clockwise direction, but Interior areas (“holes”) must be defined in clockwise direction
      • Spatial Reference ID (SRID) identifies ellipsoid used (flat/round, meters/feet)
        • Only instances with like SRID can be directly compared
    5. 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
    6. SQL Server Geospatial and Virtual Earth
    7. Geo Spatial Links
      • Practical uses for Geospatial data
      • Series on use of Geospatial data in SQL Server 2008
      • OpenGIS standards
      • OGC Methods on Geography Instances
      • OGC Methods on Geometry Instances
    8. Enhancements to T-SQL
      • Table Value Parameters
      • New Date/Time types
      • Time zone awareness
      • New MERGE keyword
      • New shorthand notation
    9. Table Value Parameters
      • TVPs are used to insert/update multiple tables at one time
        • MARS-like capability for writing
      • ADO.NET updated to include support
        • New parameter type: SqlDbType.Structured
        • MSDN documentation
    10. Dates and Time
      • Several new types added
        • datetime2
        • date
        • time
        • datetimeoffset
      • New functions added
        • CONVERT
        • SYS* Functions
        • DATEDIFF
    11. 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!
        • Review BOL for details
    12. 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
    13. T-SQL Enhancements
    14. Visual Studio Integration
      • Enhanced project types
        • SQL CLR Database projects
        • Analysis Services
          • OLAP cubes
          • Data Mining Structures
        • Integration Services
        • Reporting Services
    15. 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
      • Not tied specifically to SQL Server
    16. Architecture
    17. Visual Studio Integration
    18. 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
        • Must activate per database to enable
      • Can be remotely debugged
      • With great power comes great responsibility
        • Your code executes in the SQL Server processing stream
    19. 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
      • 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
    20. SQL CLR
    21. 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, custom
      • Reports are exposed via a Web Service
        • Can be integrated with SharePoint
        • Dependency on IIS removed (uses http.sys)
      • Strong designer and wizard support in Visual Studio
        • Can also use Report Builder
      • Enhanced configuration and administration tool
      • SSRS available in SQL Server Express 2008 w/Adv Services
    22. Programming Reports
      • 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
          • Report Viewer control in Visual Studio
      • Wizard available for initial report design
    23. Reporting Services
    24. For More Information
      • blogs.msdn.com/SoCalDevGal
      • www.microsoft.com/sql
      Pre-order it now
    25. Surprise!
      • Only for attendees of TechDays!

    + llangitllangit, 2 years ago

    custom

    3109 views, 4 favs, 1 embeds more stats

    Slides from my talk on SQL Server 2008 for develope more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 3109
      • 3034 on SlideShare
      • 75 from embeds
    • Comments 0
    • Favorites 4
    • Downloads 177
    Most viewed embeds
    • 75 views on http://blogs.msdn.com

    more

    All embeds
    • 75 views on http://blogs.msdn.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories