Download presentation
Presentation is loading. Please wait.
1
SQL Server 2005 CLR Integration ADO.NET 2.0 Mike Taulty mtaulty@microsoft.com http://mtaulty.com
2
Agenda select top 1 * from [sql2005 developer features] go waitfor delay ’00:45:00’ select * from [ado v2 features]; go
3
SQL Server Development Today SQL Server RelationalEngineStorageEngineScheduler User Code (Procedures, Functions, Triggers) T-SQL … Purpose? Libraries? Tools? Skills? ? Extended sp? COM objects?
4
System System.DataSystem.Xml System.Web Globalization Diagnostics Configuration Collections Resources Reflection Net IO Threading Text ServiceProcess Security Design OleDb SqlTypes SqlClient XPath XSLT Runtime InteropServices Remoting Serialization ConfigurationSessionState CachingSecurity Services Description Discovery Protocols UI HtmlControls WebControls System.Drawing Imaging Drawing2D Text Printing System.Windows.Forms DesignComponentModel Common Language Runtime Class Loader IL to Native Compilers Code Manager Garbage Collector Security EngineDebug Engine Type CheckerException Manager Thread SupportCOM Marshaler Base Class Library Support.NET Assembly Metadata Code (CIL) The.NET Development Platform
5
SQL Server 2005 Development SQL Server 2005 RelationalEngineStorageEngineScheduler User Code (Procedures, Functions, Triggers) T-SQL … System System.DataSystem.Xml System.Web Globalization Diagnostics Configuration Collections Resources Reflection Net IO Threading Text ServiceProcess Security Design OleDb SqlTypes SqlClient XPath XSLT Runtime InteropServices Remoting Serialization ConfigurationSessionState CachingSecurity Services Description Discovery Protocols UI HtmlControls WebControls System.Drawing Imaging Drawing2D Text Printing System.Windows.Forms DesignComponentModel Common Language Runtime Class Loader IL to Native Compilers Code Manager Garbage Collector Security EngineDebug Engine Type CheckerException Manager Thread SupportCOM Marshaler Base Class Library Support.NET Assembly Metadata Code (CIL)
6
SQL Server 2005 Development SQL Server 2005 RelationalEngineStorageEngineScheduler User Code (Procedures, Functions, Triggers) T-SQL … System System.DataSystem.Xml System.Web Globalization Diagnostics Configuration Collections Resources Reflection Net IO Threading Text ServiceProcess Security Design OleDb SqlTypes SqlClient XPath XSLT Runtime InteropServices Remoting Serialization ConfigurationSessionState CachingSecurity Services Description Discovery Protocols UI HtmlControls WebControls System.Drawing Imaging Drawing2D Text Printing System.Windows.Forms DesignComponentModel Common Language Runtime Class Loader IL to Native Compilers Code Manager Garbage Collector Security EngineDebug Engine Type CheckerException Manager Thread SupportCOM Marshaler Base Class Library Support.NET Assembly Metadata Code (CIL)
7
What can we do with CLR code? Common T-SQL objects can be implemented in CLR code User defined functions (and table valued functions) Stored procedures Triggers Additional objects can be implemented in CLR code User Defined Types User Defined Aggregates (MAX, MIN, SUM … )
8
When do we use CLR code? T-SQL code is great for CRUD operations CLR code is great for; General purpose Library support (.NET Framework) Tool support (Visual Studio 2005) Safety and (by scenario) performance “For the dirty jobs T-SQL doesn’t want to do”
9
Where do we use CLR code? Round trip “Distance” between the code and the data Scale up/out possibilities of different tiers Abstraction of the database technology Security requirements Set-based versus procedural code Possibilities for using shared code libraries in multiple tiers
10
CLR Code Inside SQL Server Demo
11
Agenda select top 1 * from [sql2005 developer features] go waitfor delay ’00:45:00’ select * from [ado v2 features]; go
12
Demo ADO.NET Version 2.0
13
ADO.NET 2.0 Features SQL 2005 User Defined Type support Query notifications Asynchronous support Multiple active result sets Client statistics Factory APIs DataSet & DataTable enhancements Binary serialization, stand-alone DataTables Bulk Load API
14
SQL Server 2005 Resources Web Sites Product site http://www.microsoft.com/sql/2005/default.asp http://www.microsoft.com/sql/2005/default.asp MSDN Centre http://msdn.microsoft.com/sql http://msdn.microsoft.com/sql SQL Team http://www.sqlteam.com http://www.sqlteam.com SQL Junkies http://www.sqljunkies.com http://www.sqljunkies.com SQL Server 2005 Express Edition http://lab.msdn.microsoft.com/express/sql/default.aspx Webcasts http://msdn.microsoft.com/sql/2005webcasts Books http://www.microsoft.com/sql/2005/samplechapters.asp User Groups http://msdn.microsoft.com/usergroups/find.asp NewsgroupsMicrosoft.public.sqlserver.*
15
SQL Server 2005 CLR Integration ADO.NET 2.0 Mike Taulty mtaulty@microsoft.com http://mtaulty.com
16
© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.