CNUG Day of.NET: October 30th SQL Server 2005: A Developers Introduction Shawn Wildermuth Magenic Technologies, Inc.

Slides:



Advertisements
Similar presentations
Intro to Sql Server Yukon for Developers Wallace B. McClure Scalable Development, Inc. Building systems today that perform tomorrow.
Advertisements

Yukon – What is New Rajesh Gala. Yukon – What is new.NET Framework Programming Data Types Exception Handling Batches Databases Database Engine Administration.
Advantage Data Dictionary. agenda Creating and Managing Data Dictionaries –Tables, Indexes, Fields, and Triggers –Defining Referential Integrity –Defining.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
SQL Server 2005 Database Engine Sommarkollo Microsoft.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Concepts of Database Management Sixth Edition
Design & Development Tools: Visual Studio 2005 SQL Server 2005 Biztalk Server 2006 David Gristwood, Mike Taulty Developer & Platform Group Microsoft Ltd.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Developing Asynchronous Database Applications with SQL Server 2005 Service Broker Noah Subrin Technical Lead SRA International.
1 Overview of what’s new for developers in SQL Server “Yukon” James Hamilton General Manager Microsoft Corporation James Hamilton General Manager Microsoft.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Service Broker Lesson 11. Skills Matrix Service Broker Service Broker, provides a solution to common problems with message delivery and consistency that.
Virtual techdays INDIA │ august 2010 Building ASP.NET applications using SQL Server Compact Chaitanya Solapurkar │ Partner Technical Consultant,
Module 5: Data Access. Overview Introduce database components involved in data access Introduce concepts of Transact -SQL and Procedural SQL as tools.
What’s New in SQL Server 2005 From a Developer’s Perspective.
Jason Morrill NCOAUG Training Day February, 2008
Module 9: Managing Schema Objects. Overview Naming guidelines for identifiers in schema object definitions Storage and structure of schema objects Implementing.
Overview SQL Server 2008 Overview Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP, MCTS Microsoft Web Development MCP ITIL.
Introduction to SQL 2005 Security Nick Ward SQL Server Specialist Nick Ward SQL Server Specialist
Module 1: Introduction to Microsoft SQL Server 7.0.
Rationale Aspiring Database Developers should be able to efficiently query and maintain databases. This module will help students learn the Structured.
Database Design for DNN Developers Sebastian Leupold.
An Introduction To CLR Integration in SQL Server 2005 (Yukon) Dr Greg Low.
Version 1.0. MCAD MCSD MCPD Enterprise SQL MCTS MCT Software/Web Development Consultant Cryptography/Digital Signature Consultant SQL Server 2005/2008R2/2012.
Functions Lesson 10. Skills Matrix Function A function is a piece of code or routine that accepts parameters and stored as an object in SQL Server. The.
Native Support for Web Services  Native Web services access  Enables cross platform interoperability  Reduces middle-tier dependency (no IIS)  Simplifies.
Sofia, Bulgaria | 9-10 October TSQL Enhancements in SQL Server 2005 Stephen Forte CTO, Corzen Inc Microsoft Regional Director NY/NJ (USA) Stephen Forte.
IN PARTNERSHIP WITH Systems Advisers Group Axapta Overview Microsoft Business Solutions - Imran Ali.
Database Technical Session By: Prof. Adarsh Patel.
Sofia, Bulgaria | 9-10 October Using XQuery to Query and Manipulate XML Data Stephen Forte CTO, Corzen Inc Microsoft Regional Director NY/NJ (USA) Stephen.
Chapter 6 : Designing SQL Server Service-Level Security MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide.
DBSQL 14-1 Copyright © Genetic Computer School 2009 Chapter 14 Microsoft SQL Server.
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 DB2 9 Fundamentals.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
5/24/01 Leveraging SQL Server 2000 in ColdFusion Applications December 9, 2003 Chris Lomvardias SRA International
SQL Server 2005: The CLR Integration What Developers and DBAs need to know.
Concepts of Database Management Seventh Edition
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
What’s New In Denali - TSQL David Ballantyne. Who am I Kent.Net/SqlServer.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Concepts of Database Management Eighth Edition Chapter 3 The Relational Model 2: SQL.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
1 11/10/05CS360 Windows Programming ADO.NET. 2 11/10/05CS360 Windows Programming ADO.NET  Behind every great application is a database manager o Amazon.
06 | Modifying Data in SQL Server Brian Alderman | MCT, CEO / Founder of MicroTechPoint Tobias Ternstrom | Microsoft SQL Server Program Manager.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
SQL Server 2005: Extending the Type System with XML.
Session 1 Module 1: Introduction to Data Integrity
DataSets Demystified. Who I am Shawn Wildermuth Senior Consultant with Magenic Technologies ( C# MVP INETA.
Stored Procedures / Session 4/ 1 of 41 Session 4 Module 7: Introducing stored procedures Module 8: More about stored procedures.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
SQL Triggers, Functions & Stored Procedures Programming Operations.
 CONACT UC:  Magnific training   
Making Sense of Service Broker Inside the Black Box.
In this session, you will learn to: Understand managed code Create managed database objects Define the Hypertext Transfer Protocol endpoints Implement.
SQL Server 2005:.NET Framework Programming in the Database Tim Sneath Architectural Engineer, Microsoft
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
Comprehensive Flexible Global Storage and Search Responsive Available Secure Manageable Federation Coordination Consolidation Transformation Synchronization.
Introducing Hekaton The next step in SQL Server OLTP performance Mladen Prajdić
Top 10 Entity Framework Features Every Developer Should Know
ASP.NET Programming with C# and SQL Server First Edition
© 2016, Mike Murach & Associates, Inc.
A Technical Overview of Microsoft® SQL Server™ 2005 Beta 2
An Introduction to Entity Framework
Database systems Lecture 3 – SQL + CRUD
Contents Preface I Introduction Lesson Objectives I-2
Chapter 8 Advanced SQL.
Chapter 11 Managing Databases with SQL Server 2000
Presentation transcript:

CNUG Day of.NET: October 30th SQL Server 2005: A Developers Introduction Shawn Wildermuth Magenic Technologies, Inc.

Agenda Who Am I? Database Engine Enhancements CLR Integration InProc Managed Provider CLR Type System XML Changes XML Type System Improved Tools Service Broker Changes to Managed Provider (Out of Proc)

Who Am I? Shawn Wildermuth Senior Consultant with Magenic Technologies C# MVP INETA Speaker Book Author –“Pragmatic ADO.NET”; –Co-author of “Programming SQL Server 2005” Editor of This Presentation can be found at: –

Who is ESS Magenic Company Background –175+ consultants –10 years in business –Regional offices Boston, Atlanta, Minneapolis, San Francisco, Chicago –Gold Certified in E-Business, Business Intelligence and Microsoft Business Solutions.NET Experts Authored 40+ books on.NET Working with.NET since alphas Microsoft Server Products Experts: Sharepoint Portal, BizTalk, SQL Server, Commerce Server, Content Management Server Several development efforts for a variety of Microsoft’s divisions

SQL Server 2005 New Version of SQL Server –Planned to be deliver in 2 nd half of 2005 ( with crossed fingers ) –More than just.NET integration –All features noted here are valid in Beta 2 –MS can pull/add features at any time though What didn’t make it –No row-level security (boo…hiss) –New temporal datatypes (Date, Time, UDT Time)

Engine Enhancements New DataTypes –XML Datatype –CLR DataTypes

Engine Enhancements (2) T-SQL Changes –New Exception Handling (TRY…CATCH) –Changes to TOP syntax Including calculated TOP numbers and use in UPDATE and DELETE –Common Table Expressions (CTE) Clearer way to make local Temp Tables and recursive queries –New APPLY clause Allows a table-valued function to be called on all rows of a table –New Security Context E.g. CREATE PROC spRunMe WITH EXECUTE AS OWNER –DDL Triggers Allows CREATE/ALTER/DROP commands

Engine Enhancements (3) Data Storage Changes –Materialized Views Allows Custered Indexes on Views to pre-compute a view –Persisted Computed Columns –Unified Large Object Types (e.g. varchar(max) instead of text) –Added ALTER INDEX –Non-Key columns can be added to indexes (partially clustered)

Engine Enhancements (4) Full-Text Engine –Now has DDL statements e.g. CREATE FULLTEXT INDEX … –Can backup and restore catalogs –Can include catalogs in attach/detaching of databases –Supports Internationalization –New Thesaurus support

Engine Enhancements (5) Other engine changes: –MARS Support (multiple resultsets from a single connection) –HTTP SOAP Access through new ENDPOINTS Like SQL XML but supported through DDL statements –Database Mirroring Way to handle fail-over without clustering –Support for Catalog Views Can now query TABLES, VIEWS, INDEXES, etc. Supports backward compatible sys.systables, but is depreciated

CLR Integration Consists of two pieces: –Managed Code –Managed Types –Improved Hosting Environment Hosting was created for an ASP.NET environment SQL Server’s requirements are completely opposite

CLR Integration Managed Code –Stored Procedures/Functions class Foo { public static void Method1() { } CREATE ASSEMBLY Utilities FROM ‘C:\assemblies\utilities.dll’ CREATE PROCEDURE Method1 AS EXTERNAL NAME Utils:Foo::Method1 exec Utils:Foo::Method1

CLR Integration (2) Other Managed Code –Managed Triggers Can be managed code like sprocs and functions –Custom Aggregates Managed Code that aggregate rows in different ways Finally a way to write your own MAX, AVG, etc. aggregates

In Proc Managed Provider SQL Server Managed Provider for Managed Code –Used inside the Server for access to data: //using System.Data.SqlServer; SqlConnection conn = SqlContext.GetConnection() SqlCommand cmd = conn.CreateCommand(); cmd.CommandText = "SELECT * from authors"; SqlDataReader r = cmd.ExecuteReader(); while (r.Read()) { Console.WriteLine("{0} ", r["au_lname"]); } r.Close();

CLR Datatypes Can store.NET Types in database tables –Information can be indexed –Lots of limitations Must support the concept of NULL. Must support conversion to and from a string representation. Must define the mechanism with which its state is serialized. Must have a default (parameterless) constructor. Must conform to SQL Naming rules (128 character maximum). Cannot be more than 8K in size.

XML Changes FOR XML Changes –Now Supports XSD –Can return new XML datatype –More support for handling of nulls in XML creation

XML Changes (2) XML Datatype –Allowed for local variables as well as column types –Supports XPath/XQuery searches –Supports in-line modification of XML documents No need to get entire document just to add/delete/modify an element –Support multiple types of XML Indexes By Path, node name or property names

XML Changes (3) Supports Typed XML –Supports specifying an XSD as an XML type –Will validate XSD on storing XML data in tables –Not as memory restrictive as CLR Types (can be over 8K)

Service Broker Reliable Messaging System inside the Database –Built-in support for asynchronous operations –Guaranteed delivery like MSMQ –Endpoints do not have to exist on local machine

Service Broker (2) Service Broker Components –Messages Bits of information that describe an operation –Contracts An agreement to what a message will consist of –Queues FIFO stores for messages –Services Code that handles a message out of a Queue

Service Broker (3) Other Service Broker Services –Conversation Management (discussions between services) –Transactional Support –Orchestration of Multiple Conversations –Security

Questions?