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

Slides:



Advertisements
Similar presentations
Yukon – What is New Rajesh Gala. Yukon – What is new.NET Framework Programming Data Types Exception Handling Batches Databases Database Engine Administration.
Advertisements

17. Data Access ADO.Net Architecture New Features of ADO.NET
DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
ACT! “Web” Plugins ACC Webinar (Part 1of 2) Brian Mowka and Jamie Aurand December 2010.
ADO.NET: Working in Disconnected Environment Sergey Baidachni MCT, MCSD, MCDBA.

Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
G O B E Y O N D C O N V E N T I O N WORF: Developing DB2 UDB based Web Services on a Websphere Application Server Kris Van Thillo, ABIS Training & Consulting.
Introduction to Database Processing with ADO.NET.
Fundamentals, Design, and Implementation, 9/e Chapter 12 ODBC, OLE DB, ADO, and ASP.
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.
Chapter 14: Advanced Topics: DBMS, SQL, and ASP.NET
SQL Server 2005 CLR Integration ADO.NET 2.0 Mike Taulty
Design & Development Tools: Visual Studio 2005 SQL Server 2005 Biztalk Server 2006 David Gristwood, Mike Taulty Developer & Platform Group Microsoft Ltd.
Passage Three Introduction to Microsoft SQL Server 2000.
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
Chapter 1 Introduction Outstanding Features About This Book 1. A novel writing style is adopted to try to attract students’ or beginning programmers’ interesting.
Computer Science 317 Database Management Introduction to Web Access to Databases.
Overview of SQL Server Alka Arora.
Rationale Aspiring Database Developers should be able to efficiently query and maintain databases. This module will help students learn the Structured.
ASP.NET Whidbey Overview  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow.
Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow.
Programming the CLR in SQL Server 2005 Mark Blomsma Develop-One Session Code: DB.08.
How a little code can help with support.. Chris Barba – Developer at Cimarex Energy Blog:
ADO.NET – part II August 2004 [ Marmagna Desai]. CONTENTS ADO vs ADO.NET ADO.NET – Managed providers Connecting to Database SqlConnection Selecting Database.
An Introduction To CLR Integration in SQL Server 2005 (Yukon) Dr Greg Low.
Beginning Databases with JDBC Mike Bradley Adapted from and notes by Kevin Parker, Ph.D.
SQL Server 2005 The Common Language Runtime (CLR) Integration Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP Web Development.
CNUG Day of.NET: October 30th SQL Server 2005: A Developers Introduction Shawn Wildermuth Magenic Technologies, Inc.
Session 1 - Introduction and Data Access Layer
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.
An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date:
 Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow. Designing & Building Windows.
ADO.NET A2 Teacher Up skilling LECTURE 3. What’s to come today? ADO.NET What is ADO.NET? ADO.NET Objects SqlConnection SqlCommand SqlDataReader DataSet.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Overview of ADO.NET with the.NET Framework Scalable Development, Inc. Building systems today that perform tomorrow.
DBSQL 14-1 Copyright © Genetic Computer School 2009 Chapter 14 Microsoft SQL Server.
PART 1 CREATING THE PRODUCT CATALOG. ROADMAP FOR THIS CHAPTER To implement the departments list, you’ll start with the database and make your way to the.
Module 2: Connecting to Data Sources. Overview Choosing a.NET Data Provider Defining a Connection Managing a Connection Handling Connection Exceptions.
Module 7: Accessing Data by Using ADO.NET
What’s New In Denali - TSQL David Ballantyne. Who am I Kent.Net/SqlServer.
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
ADO.NET Objects – Data Providers Dr. Ron Eaglin. Requirements Visual Studio 2005 Microsoft SQL Server 2000 or 2005 –Adventure Works Database Installed.
A Guide to SQL, Eighth Edition Chapter Eight SQL Functions and Procedures.
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
1 ADO Activex Data Objects. 2 ADO ADO allows users to access data easily from many existing databases (such as Access or Paradox) From ODBC compliant.
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 The SqlCommand Object ADO.NET - Lesson 03  Training time: 15 minutes  Author:
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
.NET Data Access and Manipulation
1 c6212 Advanced Database and Client Server MS SQL Server 2000 Stored Procedures and Parameters What ? Why ? How ?
Building Enterprise Applications Using Visual Studio®
Introducing the Microsoft® .NET Framework
ASP.NET Programming with C# and SQL Server First Edition
Introduction to Database Processing with ADO.NET
Introduction to Database Processing with ADO.NET
Lecture 6 VB.Net SQL Server.
Visual Studio Tools for Office 2005
PHP / MySQL Introduction
Опит в използването на ODP.NET с Oracle 9i
Module 10: Implementing Managed Code in the Database
Chapter 11 Managing Databases with SQL Server 2000
Visual Studio 2008.
Microsoft Azure Services Platform
Presentation transcript:

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

.NET Resources ASP.NET – AspAdvice – Windows Forms – Architecture – msdn.microsoft.com/architecture.NET News –

Agenda Introduction to Yukon for developers. CLR Integration. New.NET Features. TSQL. Other features. Caution: Yukon code is beta 1..NET Framework is Alpha quality. Limited Documentation.

What is Yukon? Next version of the MS Sql Server database. Integration of the.NET Framework into the engine. Beta 2 expected sometime in the early summer. Shipment?

Sql Workbench (SWB) No more Enterprise Manager. No more Sql Server Manager (for the moment). VS.NET inspired management tool. Lots of pieces are disabled at this time. Lets take a look at it…………………

Developer Oriented Featureset CLR in the database. Stored Procedures. Triggers. Functions. Scrollable Server Side Cursors. TSQL Enhancements. Full-Text Search. XML.

CLR in the Database Yukon database engine hosts the CLR. Mechanism to put procedural logic into the database..NET Whidbey framework will be integrated into the engine. Calls to CLR and TSQL objects will be the same. Similar, but safer than extended stored procedures.

When to use what? CLR Object: Complicated procedural logic. Computationally intensive logic. TSQL Object: Set oriented operations. Data oriented operations

New.NET Objects System.Data.SqlServer. SqlContext. GetTriggerContext. Insert. Update. Delete. GetCommand – access to the current command. GetConnection – access to the current connection. SqlProcedure attribute.

CLR Stored Procedure Code [SqlProcedure] public static void sp_Add_URL_DOTNET(string pstrUrl) { SqlCommand sqlCm = SqlContext.GetCommand(); string strSql; string strDomainName = CalculateDomainName(pstrUrl); string strSearchCode = CalculateSearchCode(pstrUrl); try { strSql = "select count(*) from tblSearchUrl where UrlAddress='" + SqlEscape(pstrUrl) + "' and DomainName='" + strDomainName + "' and " + "SearchCode=" + strSearchCode; sqlCm.CommandText = strSql; if ( Convert.ToInt32(sqlCm.ExecuteScalar()) == 0 ) {

strSql = "insert into tblSearchUrl (UrlAddress, UrlStatus, DomainName, SearchCode ) values (" + "'" + pstrUrl + "', 'NEW_URL', '" + SqlEscape(strDomainName) + "', " + strSearchCode + ")"; sqlCm.CommandText = strSql; sqlCm.ExecuteNonQuery(); } catch (System.Exception sysExc) { EventLog.WriteEntry("dbWebSearch", "Error Message: " + sysExc.Message, EventLogEntryType.Information); } finally { sqlCm.Dispose(); } CLR Stored Procedure Code (cont.)

CLR Trigger Code Option Explicit On Option Strict On Imports System.Data.SqlServer Public Class cTimeSheetSql Public Shared Sub trTimeSheetProjectEntryUpdate() Dim sqlTrgCxt As SqlTriggerContext = SqlContext.GetTriggerContext Dim sqlCm As SqlCommand = SqlContext.GetCommand Dim strSql As String = "update tblProjectEntry set DateUpdated='" & DateTime.Now.ToString() & "' where tblProjectEntryId in (select tblProjectEntryId from inserted)" 'Dim strSql As String = "select count(*) from inserted" Try If (sqlTrgCxt.TriggerAction = Sql.TriggerAction.Update) Then sqlCm.CommandText = strSql sqlCm.CommandType = CommandType.Text sqlCm.ExecuteNonQuery() End If Finally sqlCm = Nothing End Try End Sub

Trigger Installation CREATE ASSEMBLY as TimeSheetObjects FROM 'C:\Documents and Settings\Wallym\My Documents\Visual Studio Projects\Local - TimeSheet Project\Local - TimeSheet Project\bin\timeSheetObjectsNS.dll' WITH permission_set = safe CREATE TRIGGER [dbo].[tr_tblProjectEntry_Update] ON [dbo].[tblProjectEntry] AFTER UPDATE AS EXTERNAL name TimeSheetObjectsNS:[TimeSheetObjectsNS.cTimeSheetSql]::trTimeSheet ProjectEntryUpdate

Scrollable Server Side Cursors SqlConnection sqlCn = new SqlConnection(strCn); SqlCommand sqlCm = new SqlCommand(); SqlResultSet sqlRs; sqlCm.Connection = sqlCn; sqlCn.Open(); sqlCm.CommandText = strSql; sqlCm.CommandType = CommandType.Text; sqlRs = sqlCm.ExecuteResultSet(ResultSetOptions.Updatable); if ( sqlRs.HasRows == true ) { while(sqlRs.Read()) { //do something sqlRs.Update(); } } sqlRs.Close();

T-Sql Enhancements PIVOT/UNPIVOT. TRY/CATCH. Recursive Queries. Analogous to Oracles CONNECT BY PRIOR. Wait. Others.

Full-Text Search Enhancements Seems to be faster than Sql2k FT. More scalable than Sql2k FT. Can search through multiple columns at one time using Contains and FreeText commands.

Tons of other enhancements: New language constructs for Security. Replication. Notification Services. Triggers. XML Query. XML DataType. Service Broker. User Defined Types. Reporting Services.

Questions? Dont ask about shipment dates because I know nothing about them. END Scalable Development, Inc. Building systems today that perform tomorrow.