overview of ado.net whidbey wallace b. mcclure scalable development, inc. scalable development,...

17
Overview of ADO.NET Whidbey Wallace B. McClure Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow.

Upload: oswald-holt

Post on 26-Dec-2015

213 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

Overview ofADO.NET Whidbey

Wallace B. McClure

Scalable Development, Inc.

Scalable Development, Inc.Building systems today that perform tomorrow.

Page 2: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

EVERYTHING IS BETA.

Your mileage may vary. Anything may change between now

and shipment. December CTP of Sql Server 2005. Many thing will change between now

and Beta 3.

Page 3: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

Background

Microsoft MVP.AspInsider.Author.

Page 4: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

.NET Experiences

PDC 2000 Build (July, 2000).Book work.Visual Studio Betas.Sql Server Betas.Production applications. “Professional Programming with

ADO.NET Version 2 using Sql Server, Oracle, and MySql.”

Page 5: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

ADO.NET Whidbey Overview

Favorite Objects are still there.Connections.CommandsDatasets, DataTables, DataColumns, etc….

Evolutionary, not revolutionary.

Page 6: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

What databases are supported?

Sql Server - Client. System.Data.SqlClient.

Sql Server - Server. System.Data.Sql & System.Data.SqlServer.

Oracle. System.Data.OracleClient.ODBC. System.Data.Odbc.OleDb. System.Data.OleDb.

Page 7: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

FYI – Announced Server support for CLR Objects

IBM DB/2 8.2 – Shipping with support for .NET 1.1.

Sql Server 2005 – Ship in 2005 with support for .NET 2.0.

Oracle 10g Release 2 – Ship in 2005

Page 8: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

New Features of ADO.NET

Asynchronous operations.MARS (Sql Server 2005 only).DataType Improvements.Connection string manager. Inside the database with Sql Server

2005.

Page 9: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

Asynchronous Operations

BeginABC/EndABC style.Type of operations.

ExecuteNonQuery.ExecuteReader.ExecuteXmlReader.

Example.

Page 10: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

Asynchronous Operations

Less need for managed threads.Built into .NET 2.0.Not thread safe.Yukon supports multiple commands per

connection.Specific issue with shared memory and

Sql 7 & 2k.

Page 11: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

Multiple Active Result Sets(MARS)

Multiple open commands on a single connection.

Sql Server 2005 only.Example.

Page 12: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

DataType Improvements

Hard to get the field information through ADO.NET 1.x.

FillSchema() method only returns basic information.

GetProviderSpecificFieldType().GetDataTypeName().Example.

Page 13: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

Connection strings

Connection strings aren’t very object based.

SqlConnectionStringBuilder().Key/Value style.

Page 14: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

Inside the Sql Server 2005 database with the CLR

CLR Objects.Triggers.Stored Procedures.Functions.Aggregates.User Defined Types.

System.Data.Sql & System.Data.SqlServerExample.

Page 15: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

Other features

System.Transactions.Server enumeration.Password management.Bulk Copy.Provider Statistics.Caching support.

Page 16: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

If you want to know more about ADO.NET Whidbey/Yukon…….

http://weblogs.asp.net/wallym.http://weblogs.asp.net/despos.http://weblogs.asp.net/angelsb.http://msdn.microsoft.com.http://www.microsoft.com/sql. “Professional ADO.NET Version 2” due

in the summer of 2005. It makes a great gift. Buy 3 or 4 for the ones you love.

Page 17: Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow

Questions?

Wallace B. McClure [email protected]. http://www.scalabledevelopment.com/ http://weblogs.asp.net/wallym 865-693-3004.

END

Scalable Development, Inc.Building systems today that perform tomorrow.