Upload
todd-hart
View
213
Download
0
Embed Size (px)
Citation preview
Managing and Monitoring SQL Server 2005
Managing and Monitoring SQL Server 2005
Shankar PalShankar PalProgram ManagerProgram ManagerSQL Server, RedmondSQL Server, Redmond
Managing and Managing and AdministeringAdministering
SQL Server Management StudioSQL Server Management Studio Dynamic Management ViewsDynamic Management Views
Integrated management and Integrated management and development environmentdevelopment environment
Used to manage:Used to manage: Relational databasesRelational databases Analysis ServicesAnalysis Services Reporting ServicesReporting Services SQL Server Mobile SQL Server Mobile
databasesdatabasesBased on Visual Studio .NETBased on Visual Studio .NETIntegrates Functionality of:Integrates Functionality of:
Enterprise ManagerEnterprise Manager Query AnalyzerQuery Analyzer Analysis ManagerAnalysis Manager
Includes scripting tools for:Includes scripting tools for: Transact-SQL/SQLCMDTransact-SQL/SQLCMD XMLA/MDX/DMXXMLA/MDX/DMX
Provides graphical reportsProvides graphical reportsMuch, much more!Much, much more!
Management StudioManagement Studio
A Tour of SQL Server Management StudioA Tour of SQL Server Management Studio
Dynamic Management Dynamic Management ViewsViews Views built on top of internal Views built on top of internal
structuresstructures Ideal for monitoring serverIdeal for monitoring server
Server LevelServer Level Component LevelComponent Leveldm_exec_* dm_exec_*
Execution of user code and Execution of user code and associated connections associated connections
dm_os_* dm_os_* Memory, locking & Memory, locking & scheduling scheduling
dm_tran_* dm_tran_* Transactions & isolation Transactions & isolation
dm_io_* dm_io_* I/O on network and disks I/O on network and disks
dm_db_* dm_db_* Databases and database Databases and database objectsobjects
dm_repl_* dm_repl_* Replication Replication
dm_broker_* dm_broker_* SQL Service Broker SQL Service Broker
dm_fts_* dm_fts_* Full Text Search Full Text Search
dm_qn_* dm_qn_* Query Notifications Query Notifications
dm_clr_* dm_clr_* Common Language Common Language RuntimeRuntime
DM_ Object InterfaceDM_ Object Interface
SQL Server Relational SQL Server Relational EngineEngine
Operational Operational Memory Memory
StructuresStructures
Operational Operational Memory Memory
StructuresStructures
Aggregate Aggregate Statistical Statistical
DataData
Aggregate Aggregate Statistical Statistical
DataData
DMVs DMVs and and
DMFsDMFs
Resource DBResource DB (visible as
“sys” schema)
SPs, Views, SPs, Views, Tables, etc.Tables, etc.User DBUser DB
Monitoring Monitoring or or
Diagnostic Diagnostic ApplicationApplication
Some Some existed, yet existed, yet not exposednot exposed
New and exposed New and exposed in SQL Server in SQL Server
20052005
Database Management Views and FunctionsDatabase Management Views and Functions
Maintaining SecurityMaintaining Securityand Operational Policiesand Operational Policies
SQL Server Surface Area SQL Server Surface Area ConfigurationConfiguration
Auditing and Change ControlAuditing and Change Control
SQL Server Surface Area ConfigurationSQL Server Surface Area Configuration
Auditing and Change ControlAuditing and Change ControlControlling and Monitoring ChangeControlling and Monitoring Change DDL Triggers – targeting DDL Triggers – targeting
Specific Commands: Specific Commands: DROP_TABLEDROP_TABLE Groups: Groups: DDL_PROCEDURE_EVENTSDDL_PROCEDURE_EVENTS
CREATE PROCEDURECREATE PROCEDURE ALTER PROCEDUREALTER PROCEDURE DROP PROCEDUREDROP PROCEDURE
Event Notifications and WMI Events – Event Notifications and WMI Events – target all of the above, plus:target all of the above, plus: Specific Trace Events: Specific Trace Events:
DATA_FILE_AUTO_GROWDATA_FILE_AUTO_GROW Trace Groups: Trace Groups: TRC_STORED_PROCEDURESTRC_STORED_PROCEDURES
SP_RECOMPILESP_RECOMPILE SP_CACHEMISSSP_CACHEMISS SP_CACHEREMOVESP_CACHEREMOVE SP_CACHEINSERTSP_CACHEINSERT
DDL TriggersDDL Triggers
Monitoring and Monitoring and TroubleshootingTroubleshooting
System Monitor IntegrationSystem Monitor Integration SQL Server ProfilerSQL Server Profiler
MonitoringMonitoringA Unified ApproachA Unified Approach
Supports multiple Supports multiple logs logs SQL Server SQL Server
Database Engine Database Engine InformationInformation
SQL Server Agent SQL Server Agent InformationInformation
Windows Event Windows Event Viewer Application Viewer Application LogLog
Database Mail LogsDatabase Mail Logs
Across all logs, Across all logs, allows:allows: Searching Searching
FilteringFiltering
ExportingExporting
Analyze the SQL Server Analyze the SQL Server Database Engine and Analysis Database Engine and Analysis ServicesServices
Significantly easier to setup Significantly easier to setup (Events, Data Columns and (Events, Data Columns and Filter dialogs combined)Filter dialogs combined)
Special Events: Service Broker, Special Events: Service Broker, Notification Services, etc…Notification Services, etc…
Special Event types: Showplan Special Event types: Showplan XML and Deadlock Graph – can XML and Deadlock Graph – can be saved to filesbe saved to files
Supports pause and modifySupports pause and modify
Profiles SQL Server 2000 & Profiles SQL Server 2000 & 20052005
Permissions to profile Permissions to profile grantablegrantable
SQL Server ProfilerSQL Server Profiler
A Tour of SQL Server ProfilerA Tour of SQL Server Profiler
Performance TuningPerformance Tuning
Database Engine Tuning AdvisorDatabase Engine Tuning Advisor
Partitioning Partitioning recommendationsrecommendations
Time-bound tuningTime-bound tuningIndexes with Included Indexes with Included
columnscolumnsXML Input/Output XML Input/Output Drop ONLY modeDrop ONLY modeParameterized command Parameterized command
line executionline executionImport previously saved Import previously saved
Session Definition (XML Session Definition (XML format)format)
Workload optionsWorkload options Can be a *.trc, *.sql or *.xml Can be a *.trc, *.sql or *.xml
formatformat Can be a SQL Server TableCan be a SQL Server Table
Database Tuning Advisor Database Tuning Advisor (DTA)(DTA)
Database Tuning AdvisorDatabase Tuning Advisor
Automation and UpgradeAutomation and Upgrade
Database Maintenance PlansDatabase Maintenance Plans Database MailDatabase Mail SQLCMDSQLCMD
Based on SQL Server Based on SQL Server Integration ServicesIntegration Services
Flexible Wizard based Flexible Wizard based InterfaceInterface
Options to create cross Options to create cross database plansdatabase plans
Backup all users Backup all users databases will pick up databases will pick up newly added databases – newly added databases – even after the plan is even after the plan is createdcreated
Database Maintenance Database Maintenance PlansPlans
Uses SMTP – No Microsoft Uses SMTP – No Microsoft Outlook dependency!Outlook dependency!
No SQLCLR dependencyNo SQLCLR dependency
Asynchronous and queued Asynchronous and queued architecturearchitecture
Leverages SQL Server Leverages SQL Server Service Broker for queuingService Broker for queuing
Multiple SMTP accountsMultiple SMTP accounts
SMTP account failoverSMTP account failover
Mail calls made outside SQL Mail calls made outside SQL Server processServer process
Cluster supportCluster support
64-bit support64-bit support
LoggingLogging
Database MailDatabase Mail
SQLCMDSQLCMDCommand-line automation and Command-line automation and scriptingscripting Replaces OSQLReplaces OSQL Supports Connections Supports Connections
to multiple servers to multiple servers (master scripts)(master scripts)
Allows Parameter Allows Parameter substitutionsubstitution Variables defined in Variables defined in
scriptscript Variables passed inVariables passed in Environment variablesEnvironment variables
Better Control on Better Control on ErrorError
Initialization ScriptsInitialization Scripts Dedicated Admin Dedicated Admin
ConnectionConnection
For More InformationFor More Information
http://www.microsoft.comhttp://www.microsoft.com Books OnlineBooks Online http://msdn.microsoft.comhttp://msdn.microsoft.com
WhitepapersWhitepapers Books OnlineBooks Online WebcastsWebcasts
Blogs at Blogs at http://blogs.msdn.comhttp://blogs.msdn.com Example: http://blogs.msdn.com/spalExample: http://blogs.msdn.com/spal
© 2005 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.