1 Building Management Applications with SQL Server “Yukon” SQL Management Objects (SMO): Overview Bruce Prang Development Manager Microsoft Corporation.

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

Your Data Any Place, Any Time Manageability. SQL Server 2008 Manageability Challenges Challenges face database administrators today : Managing complex.
ADABAS to RDBMS UsingNatQuery. The following session will provide a high-level overview of NatQuerys ability to automatically extract ADABAS data from.
Module 1: Introduction to SQL Server Reporting Services.
Designing InfoPath Forms: The Dos and Donts Deploying InfoPath Forms: Making the right choice Adding custom business logicin case the built-in stuff isnt.
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Fundamentals, Design, and Implementation, 9/e Chapter 12 ODBC, OLE DB, ADO, and ASP.
IIS7: Building New Core Server Modules Michael Volodarsky COM406 Program Manager Microsoft Corporation.
SQL Overview Defining a Schema CPSC 315 – Programming Studio Spring 2008 Project 1, Lecture 3 Slides adapted from those used by Jeffrey Ullman, via Jennifer.
If you have SQL Server 2005, you get all the features below plus the following: If you have SQL Server 2000, you get all the features below plus.
Managing and Monitoring SQL Server 2005 Shankar Pal Program Manager SQL Server, Redmond.
Created by the Community for the Community Building a RFID solution in BTS 09.
Module 3: SQL Server 2005 Administrative Tools. Overview Using SQL Server Management Studio Using SQL Computer Manager Using the sqlcmd Utility Using.
Advanced Deployment Topics – MSI Enhancements Om Sharma Program Manager, Windows Installer Microsoft Corporation.
Connect with life Praveen Srvatsa Director | AsthraSoft Consulting Microsoft Regional Director, Bangalore Microsoft MVP, ASP.NET.
Session 7 Creating and Managing Databases. RDBMS and Data Management/ Session 7/2 of 27 Session Objectives Describe the system and user-defined databases.
Chapter 10.
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
DBA230 Introducing SQL Server 2000 Reporting Services Jason Carlson Product Unit Manager SQL Server Microsoft Corporation.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
1 Chapter Overview Creating a User Database Setting Database Options Managing User Database Size Placing Database Files on Multiple Disks.
SSIS Over DTS Sagayaraj Putti (139460). 5 September What is DTS?  Data Transformation Services (DTS)  DTS is a set of objects and utilities that.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 13 Managing Databases with SQL Server 2000.
Overview of SQL Server Alka Arora.
Copyright  Oracle Corporation, All rights reserved. 5 CMIS Powell Oracle Designer: Design Editor and Building the Database and Table API CMIS.
DAT336 SQL Server “Yukon” – The Future of Business Intelligence Jason Carlson Product Unit Manager SQL Server Microsoft Corporation Brian Welcker Microsoft.
Business Solutions Using Microsoft ® Office SharePoint ® Server ROADSHOW.
Your Data Any Place, Any Time Online Transaction Processing.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
Exploiting New Capabilities for Search And Organization Kerem Karatal DAT307 Lead Program Manager Microsoft Corporation.
1 SQL Server 2000 Administration Kashef Mughal MSB.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Designing a Scalable Enterprise Project Management Architecture Ken Toole Platform Test Manager MS Project Microsoft Corporation.
Application Data and Database Activities Auditing Dr. Gabriel.
DEV333 Instrumenting Applications for Manageability with the Enterprise Instrumentation Framework David Keogh Program Manager Visual Studio Enterprise.
“ WinFS” Future Directions: Building Data-Centric Applications Using Windows Presentation Foundation “Avalon” and Windows Forms Ramesh Nagarajan DAT310.
DAT 332 SQL Server 2000 Data Transformation Services (DTS) Best Practices Euan Garden Product Unit Manager SQL Server Development Microsoft Corporation.
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
Microsoft Office Excel 2007: Programming Business Intelligence Features John Hooper Service Line Architect Microsoft Corporation Jed Farr Senior Consultant.
Under New Management Andrew Fryer Microsoft UK Andrew Fryer Microsoft UK.
SQL Server 2008 R2 Manageability. Challenges facing database administrators today: Scaling management to multiple data centers Proactively monitoring.
DAT325 SQL Server 2005 (Codenamed “Yukon”): Using the Service Broker To Build Asynchronous, Queued Database Applications Roger Wolter Program Manager.
Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.
DBA331 Managing a Microsoft SQL Server 2000 Reporting Services Implementation Brian Welcker Group Program Manager SQL Server Microsoft Corporation.
Hosting Websites and Web Applications with Microsoft ® SQL Server ® 2008.
IT System Administration Lesson 3 Dr Jeffrey A Robinson.
Your Data Any Place, Any Time Performance and Scalability.
MSG 334 Creating Exchange Administrative Scripting for the Non-Programmer Susan Hill Lead Programmer Writer Microsoft Corporation.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
CS 440 Database Management Systems Stored procedures & OR mapping 1.
Developing Custom ASP.NET Providers For Membership And Role Manager Stefan Schackow PRS404 Program Manager – Web Platform and Tools Microsoft Corporation.
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
Getting the Most from SQL Server 2005 Don Vilen Program Manager SQL Server Microsoft Corporation.
Session disclaimer This is a point of time view
Building Enterprise Applications Using Visual Studio®
Introducing SQL Server 2000 Reporting Services
Module 1: SQL Server Overview
Integrating Enterprise Applications Into SharePoint® Portal Server
Microsoft /2/2018 3:42 PM BRK3129 Query Big Data using the Expanded T-SQL footprint with PolyBase in SQL Server 2016 Casey Karst Program Manager.
Chris Menegay Sr. Consultant TECHSYS Business Solutions
SQL Server Data Tools for Visual Studio Part I: Core SQL Server Tools
Exploring Azure Event Grid
DAT381 Team Development with SQL Server 2005
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
Your Data Any Place, Any Time
SharePoint Server Assessment Results
System Center Operations Manager Assessment Results
Presentation transcript:

1 Building Management Applications with SQL Server “Yukon” SQL Management Objects (SMO): Overview Bruce Prang Development Manager Microsoft Corporation Bruce Prang Development Manager Microsoft Corporation Session Code: DAT360

2 What is SMO SQL Server Management Objects Programmatic object model for DDL operations Use it for creation, management, discovery, configuration of Sql Servers.NET Class Library Not a total abstraction of Sql Server SQL Server Management Objects Programmatic object model for DDL operations Use it for creation, management, discovery, configuration of Sql Servers.NET Class Library Not a total abstraction of Sql Server

3 Some of the Design Goals 100% coverage of Sql Server features Improve scalability and performance Simple to use, but rich object model High level of control over object model behavior Advanced scripting capabilities Build SQL Server Workbench on it 100% coverage of Sql Server features Improve scalability and performance Simple to use, but rich object model High level of control over object model behavior Advanced scripting capabilities Build SQL Server Workbench on it

4 Object Model Databases Server ConnectionContext Database SqlAssembly FileGroup Tables Table Assemblies FileGroups JobServer Jobs Job Alerts Alerts Shared Schedules Job Schedule

5 SMO – lets see it Ovidiu Craciun Sql Server Management Tools Ovidiu Craciun Sql Server Management Tools

6 SMO SMO Architecture Utility Classes Instance Classes Scripter Classes Management Application WMI Provider Enumeration Component Connection Class (SQL Server.NET Data Provider) SQL Server Configure/Enum

7 SMO Features Optimized instantiation of objects Scripting – Basic and Advanced Capture of Transact-SQL Support for new Yukon features Use of.NET types E.g. DateTime, Timespan instead of scaled long integers, etc. Management Object Model for SQL Services and Configuration (through WMI Provider) Optimized instantiation of objects Scripting – Basic and Advanced Capture of Transact-SQL Support for new Yukon features Use of.NET types E.g. DateTime, Timespan instead of scaled long integers, etc. Management Object Model for SQL Services and Configuration (through WMI Provider)

8 Feature Overview Optimized Instantiation Instance Classes support “optimized (delayed) instantiation” Object states 1: Partially instantiated (some properties available) 2: Fully instantiated Full instantiation is triggered when a property is called that has not been retrieved yet, or when a method is called that requires a missing property Instance Classes support “optimized (delayed) instantiation” Object states 1: Partially instantiated (some properties available) 2: Fully instantiated Full instantiation is triggered when a property is called that has not been retrieved yet, or when a method is called that requires a missing property

9 Feature Overview Optimized Instantiation Can be controlled by programmer DefaultInitFields, PrefetchObjects Fits any scenario Can be controlled by programmer DefaultInitFields, PrefetchObjects Fits any scenario Memory optimal Network/Query optimal Delayed instantiation per object [default] Many objects fully initialized

10 SMO – lets tune it Ovidiu Craciun Sql Server Management Tools Ovidiu Craciun Sql Server Management Tools

11 Feature Overview Capture Mode All Transact-SQL generated by performing actions on SMO objects can be captured or recorded This is NOT transactional, it is only capture WorkBench Dialogs use this capability to script operations All Transact-SQL generated by performing actions on SMO objects can be captured or recorded This is NOT transactional, it is only capture WorkBench Dialogs use this capability to script operations

12 Feature Overview Scripter Class Basic Scripting All DMO Scripting options will continue to be supported Script interface on individual classes will also be available (same as SQL-DMO) Advanced Scripting Filtering, available in multiple places List modification Object modification Progress and Error events Basic Scripting All DMO Scripting options will continue to be supported Script interface on individual classes will also be available (same as SQL-DMO) Advanced Scripting Filtering, available in multiple places List modification Object modification Progress and Error events

13 Scripting Phases /****** Object: Table [employee] Script Date: 9/28/2001 4:02:31 PM ******/ if not exists (select * from dbo.sysobjects where id = object_id(N'[employee]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) BEGIN CREATE TABLE [employee]( [em p_id] [empid] COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [fna me] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [mi nit] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS, [lna me] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [job _id] [smallint] NOT NULL CONSTRAINT [DF__employee__job_id__1B0907CE] DEFAULT (1) Single phase without manipulation

14 Scripting Phases List Generation Script Generation ManipulationDiscoveryManipulation /****** Object: Table [employee] Script Date: 9/28/2001 4:02:31 PM ******/ if not exists (select * from dbo.sysobjects where id = object_id(N'[employee]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) BEGIN CREATE TABLE [employee]( [em p_id] [empid] COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [fna me] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [mi nit] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS, [lna me] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [job _id] [smallint] NOT NULL CONSTRAINT [DF__employee__job_id__1B0907CE] DEFAULT (1)

15 How Did We Get Here? SQL Server 6.x– SQLOLE SQL Server 7.0– SQL-DMO SQL Server 2000– SQL-DMO SQL Server Yukon– SMO Architectural limitations in DMO Needed a.Net class library Needed Full Support in object model SQL Server 6.x– SQLOLE SQL Server 7.0– SQL-DMO SQL Server 2000– SQL-DMO SQL Server Yukon– SMO Architectural limitations in DMO Needed a.Net class library Needed Full Support in object model

16 Backwards Compatible SMO Supports SQL Server 7.0 SQL Server 2000 SQL Server “Yukon” COM callable wrappers for Script DMO “Yukon” Shipping in the Yukon box Works against “Yukon” No new Yukon features SMO Supports SQL Server 7.0 SQL Server 2000 SQL Server “Yukon” COM callable wrappers for Script DMO “Yukon” Shipping in the Yukon box Works against “Yukon” No new Yukon features

17 SMO – a little more Ovidiu Craciun Sql Server Management Tools Ovidiu Craciun Sql Server Management Tools

18 SQL Server Resources Week long SQL Server “Ask the Experts” lounge in: Foyer outside Room 309 Support for SQL Server “Yukon” PDC Preview at SQLJunkies SQL Server “Yukon” FAQ Blog at SQLTeam Other Key Resources world wide user groups, Our most active SQL Server newsgroups, Microsoft.public.sqlserver.programming Microsoft.public.sqlserver.server Microsoft.public.sqlserver.dts Microsoft.public.sqlserver.olap Microsoft.public.sqlserver.setup Microsoft.public.sqlserver.replication Microsoft.public.sqlserver.msde Week long SQL Server “Ask the Experts” lounge in: Foyer outside Room 309 Support for SQL Server “Yukon” PDC Preview at SQLJunkies SQL Server “Yukon” FAQ Blog at SQLTeam Other Key Resources world wide user groups, Our most active SQL Server newsgroups, Microsoft.public.sqlserver.programming Microsoft.public.sqlserver.server Microsoft.public.sqlserver.dts Microsoft.public.sqlserver.olap Microsoft.public.sqlserver.setup Microsoft.public.sqlserver.replication Microsoft.public.sqlserver.msde

19 Questions? Requests: Requests:

20 © Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.