SlideShare une entreprise Scribd logo
1  sur  36
Do More With Less:
Inside SQL Central Management Server and Multi-Server
Administration
Mike Hillwig
 SQL Server DBA
 Working with SQL Server since SQL 7
 Resume includes Acme Packet Oracle, Shawmut Design and Construction,
Equitable Resources, Weirton Steel
Mike Hillwig
 Owned by Two Pugs
 Avid Cook
 Lover of Blue Cheese
 And Bacon
 Geek at Heart
Obligatory Social Networking Slide
 mikehillwig.com
 sqlserverpedia.com
 twitter.com/mikehillwig
 anysocialnetworkingsite/mikehillwig
Housekeeping
 Don’t let me talk too fast.
 Blog post at mikehillwig.com/go/domore
 Please send feedback to mike@mikehillwig.com
April 18, 2015
Microsoft, Cambridge, MA
Beware of the Blogs
 There is some amazing advice out
there. But…
 Anybody can put bad advice on the
internet
 Trust people you know
 Assume I’m an idiot
 I don’t trust people who say
“ALWAYS” or “NEVER”
 Test everything in your own test
environment first.
Before I start…
 This crowd scares the crap out of me.
 Seriously.
 You’re one of the most technical user groups I’ve ever seen.
With that said…
 This is a new topic for me.
 Your feedback is incredibly important
 mike@mikehillwig.com
Slides and Blog Post
 mikehillwig.com/go/domore
Tonight’s Topics
 Central Management Server
 SQL Agent Multi Server Administration
Central Management Server
 Catalog of Servers
 Allows you to synchronously query multiple servers
SQL Agent Multi Server
 Centralize your SQL Agent Jobs
 It’s a Master/Target relationship for the SQL Agent
LET’S DIG IN
About My Infrastructure
 Using a single VM named SLATE with seven instances
 You wouldn’t do that. These tools require AD authentication.
 I’m too lazy to configure a domain controller
Seven Instances
 Fred
 Wilma
 Barney
 Betty
 Pebbles
 BamBam
 Bedrock
Central Management Server
 It’s a catalog of servers
 Allows you to break your servers into categories
 There is nothing fancy about this technology
 Yet it’s a great time saver
 The tool you won’t appreciate until you really need it
 Allows you to query multiple servers synchronously at once…
without PowerShell.
Why would I Use this?
 Audits (Getting lists of things on multiple servers)
 Deployments
 Security functions
 Creating logins
 Disabling logins
 Anything that you need to run on multiple servers
Demo
Important Tables
 sysmanagement_shared_server_groups
 Contains the groups/folders
 sysmanagement_shared_registered_servers
 Contains the servers we’ve registered.
Important Procedures
 sp_sysmanagement_add_shared_server_group
 Adds a new group/folder
 sp_sysmanagement_add_shared_registered_server
 Adds a new server to a group
A Note on Connectivity
 The Central Management Server is just the catalog.
 The machine where you’re running SSMS makes the
connections to each server.
 If your machine can’t see a server, your connection will fail.
A Note on Security
 Unless you specifically configure it to use SQL authentication,
AD authentication will use YOUR login and not the server’s
service account.
One more thing…
 Your statements and scripts will run synchronously
 Do NOT expect your results to come back in a specific order
 The order of results appears to be the order of completion
Multi-Server Administration
 Incredibly cool
 Incredibly powerful
 The most unsexy technology to come out of Redmond since
Microsoft Bob
 Has a few quirks
 Does have a few serious caveats
 Caveats do have workarounds
Benefits
 Allows you to keep consistency with SQL Agent jobs across
multiple servers
 It’s a huge time saver when you need to change a script that
you regularly run in your environment, such as backup scripts
or index/statistics maintenance
 When a job is deployed from the master server to targets,
they are locked on the target. This enforces consistency.
Pitfalls
 It can be quirky
 Be careful with security
 It’s a complete culture shift
 When you push a job to target servers, it pushes all of the
properties, including the schedules.
 Be careful with IO-intensive jobs!
Turning That Around
 You can still deploy the job without a schedule
 Then create a job that uses msdb.dbo.sp_start_job
 This allows you to leverage the benefits of a centrally
managed server while using the schedule of a local job
Demo
Notable Tables
 sysjobs – All of the jobs you have defined, both local and
Multi-Server Jobs
 systargetservers – Shows all of your target servers
 sysjobservers – Shows what jobs are deployed to what
servers
Notable Procedures
 sp_help_targetserver – Run from the master, shows all of
your target servers
 Status of 5 means you have a process that is preventing you from
downloading instructions
 Shows much of the data in systargetservers
A Note on Connectivity
 This uses the connectivity between servers, not your
machine’s connectivity
 The pushing of SQL Agent job updates is done on a regularly
scheduled polling process
A Note on Security
 Be very careful with security on this
 If you do this wrong, you could set yourself up for issues
 If users can manage SQL Agent jobs on your master servers,
they can deploy jobs to your target server, even if they don’t
have access to that server
 Jobs on the target run in the context of the target server’s
service account
 If you have segregation of duty issues, be very careful who
you give access to your master server
Wrapping Up
 CMS and MSX are very different technologies
 Different capabilities
 Different use cases
 Combining the two gives you a great set of tools
One more thing…
 Neither CMS and MSX allow the main server to manage
themselves
 Put both of these tools on an independent box

Contenu connexe

Tendances

Steve Huffman - Lessons learned while at reddit.com
Steve Huffman - Lessons learned while at reddit.comSteve Huffman - Lessons learned while at reddit.com
Steve Huffman - Lessons learned while at reddit.comCarsonified Team
 
Website Backup
Website Backup Website Backup
Website Backup Matt Foley
 
Manual, Visual, and Automated Testing For Web Apps
Manual, Visual, and Automated Testing For Web AppsManual, Visual, and Automated Testing For Web Apps
Manual, Visual, and Automated Testing For Web AppsSmartBear
 
Sustainable Automation Frameworks by Kelsey Shannahan
Sustainable Automation Frameworks by Kelsey ShannahanSustainable Automation Frameworks by Kelsey Shannahan
Sustainable Automation Frameworks by Kelsey ShannahanQA or the Highway
 
Getting Started With Selenium
Getting Started With SeleniumGetting Started With Selenium
Getting Started With SeleniumSmartBear
 
IWMW 2009: Lightweight Web Management
IWMW 2009: Lightweight Web ManagementIWMW 2009: Lightweight Web Management
IWMW 2009: Lightweight Web ManagementIWMW
 
Test Design + Environment Management: Scaling UI Automation for Agile
Test Design + Environment Management: Scaling UI Automation for AgileTest Design + Environment Management: Scaling UI Automation for Agile
Test Design + Environment Management: Scaling UI Automation for AgileSmartBear
 
Reactive Guide for Spring MVC - Rossen Stoyanchev
Reactive Guide for Spring MVC - Rossen StoyanchevReactive Guide for Spring MVC - Rossen Stoyanchev
Reactive Guide for Spring MVC - Rossen StoyanchevVMware Tanzu
 
Introduction to php for absolute beginners
Introduction to php for absolute beginnersIntroduction to php for absolute beginners
Introduction to php for absolute beginnersJeremiah Tillman
 
Telling Tales and Solving Crimes with New Relic
Telling Tales and Solving Crimes with New RelicTelling Tales and Solving Crimes with New Relic
Telling Tales and Solving Crimes with New RelicJames Ford
 
10 WordPress Tips
10 WordPress Tips10 WordPress Tips
10 WordPress TipsAnnie Lee
 
Wp speedy make your word-press website loads faster
Wp speedy   make your word-press website loads fasterWp speedy   make your word-press website loads faster
Wp speedy make your word-press website loads fasterSasa Bastian Jovanovic
 
2015 contens präsentation_hunting_bugs
2015 contens präsentation_hunting_bugs2015 contens präsentation_hunting_bugs
2015 contens präsentation_hunting_bugsCONTENS Software GmbH
 
Importance of-website-backups
Importance of-website-backupsImportance of-website-backups
Importance of-website-backupsmymlmfinder
 
Bootstrapping your startup & building it lean: stop wasting time
Bootstrapping your startup & building it lean: stop wasting timeBootstrapping your startup & building it lean: stop wasting time
Bootstrapping your startup & building it lean: stop wasting timeJoel Gascoigne
 
Circuit 2016: Automation done right
Circuit 2016: Automation done rightCircuit 2016: Automation done right
Circuit 2016: Automation done rightJörg Hoh
 
The Selfish Programmer
The Selfish ProgrammerThe Selfish Programmer
The Selfish Programmerkamaelian
 

Tendances (20)

Steve Huffman - Lessons learned while at reddit.com
Steve Huffman - Lessons learned while at reddit.comSteve Huffman - Lessons learned while at reddit.com
Steve Huffman - Lessons learned while at reddit.com
 
Website Backup
Website Backup Website Backup
Website Backup
 
Exam results in SaaS
Exam results in SaaSExam results in SaaS
Exam results in SaaS
 
Manual, Visual, and Automated Testing For Web Apps
Manual, Visual, and Automated Testing For Web AppsManual, Visual, and Automated Testing For Web Apps
Manual, Visual, and Automated Testing For Web Apps
 
Sustainable Automation Frameworks by Kelsey Shannahan
Sustainable Automation Frameworks by Kelsey ShannahanSustainable Automation Frameworks by Kelsey Shannahan
Sustainable Automation Frameworks by Kelsey Shannahan
 
Getting Started With Selenium
Getting Started With SeleniumGetting Started With Selenium
Getting Started With Selenium
 
IWMW 2009: Lightweight Web Management
IWMW 2009: Lightweight Web ManagementIWMW 2009: Lightweight Web Management
IWMW 2009: Lightweight Web Management
 
Email Management
Email ManagementEmail Management
Email Management
 
Test Design + Environment Management: Scaling UI Automation for Agile
Test Design + Environment Management: Scaling UI Automation for AgileTest Design + Environment Management: Scaling UI Automation for Agile
Test Design + Environment Management: Scaling UI Automation for Agile
 
Reactive Guide for Spring MVC - Rossen Stoyanchev
Reactive Guide for Spring MVC - Rossen StoyanchevReactive Guide for Spring MVC - Rossen Stoyanchev
Reactive Guide for Spring MVC - Rossen Stoyanchev
 
Introduction to php for absolute beginners
Introduction to php for absolute beginnersIntroduction to php for absolute beginners
Introduction to php for absolute beginners
 
Telling Tales and Solving Crimes with New Relic
Telling Tales and Solving Crimes with New RelicTelling Tales and Solving Crimes with New Relic
Telling Tales and Solving Crimes with New Relic
 
10 WordPress Tips
10 WordPress Tips10 WordPress Tips
10 WordPress Tips
 
Wp speedy make your word-press website loads faster
Wp speedy   make your word-press website loads fasterWp speedy   make your word-press website loads faster
Wp speedy make your word-press website loads faster
 
2015 contens präsentation_hunting_bugs
2015 contens präsentation_hunting_bugs2015 contens präsentation_hunting_bugs
2015 contens präsentation_hunting_bugs
 
Importance of-website-backups
Importance of-website-backupsImportance of-website-backups
Importance of-website-backups
 
Bootstrapping your startup & building it lean: stop wasting time
Bootstrapping your startup & building it lean: stop wasting timeBootstrapping your startup & building it lean: stop wasting time
Bootstrapping your startup & building it lean: stop wasting time
 
Scaling Selenium
Scaling SeleniumScaling Selenium
Scaling Selenium
 
Circuit 2016: Automation done right
Circuit 2016: Automation done rightCircuit 2016: Automation done right
Circuit 2016: Automation done right
 
The Selfish Programmer
The Selfish ProgrammerThe Selfish Programmer
The Selfish Programmer
 

Similaire à Do More With Less: SQL Central Management Server and Multi-Server Administration

How Not to be a Cranky DBA
How Not to be a Cranky DBAHow Not to be a Cranky DBA
How Not to be a Cranky DBAMike Hillwig
 
How not to be a cranky dba
How not to be a cranky dbaHow not to be a cranky dba
How not to be a cranky dbaMike Hillwig
 
Geek Sync | Field Medic’s Guide to Database Mirroring
Geek Sync | Field Medic’s Guide to Database MirroringGeek Sync | Field Medic’s Guide to Database Mirroring
Geek Sync | Field Medic’s Guide to Database MirroringIDERA Software
 
Sql interview question part 8
Sql interview question part 8Sql interview question part 8
Sql interview question part 8kaashiv1
 
Managing SQLserver for the reluctant DBA
Managing SQLserver for the reluctant DBAManaging SQLserver for the reluctant DBA
Managing SQLserver for the reluctant DBAConcentrated Technology
 
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent OzarGeek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent OzarIDERA Software
 
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersTobias Koprowski
 
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersKoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersTobias Koprowski
 
5 Quick Wins for the Cloud
5 Quick Wins for the Cloud5 Quick Wins for the Cloud
5 Quick Wins for the CloudRightScale
 
Roman Rehak: 24/7 Database Administration + Database Mail Unleashed
Roman Rehak: 24/7 Database Administration + Database Mail UnleashedRoman Rehak: 24/7 Database Administration + Database Mail Unleashed
Roman Rehak: 24/7 Database Administration + Database Mail UnleashedMSDEVMTL
 
High Performance Mysql
High Performance MysqlHigh Performance Mysql
High Performance Mysqlliufabin 66688
 
Workshop: Delivering chnages for applications and databases
Workshop: Delivering chnages for applications and databasesWorkshop: Delivering chnages for applications and databases
Workshop: Delivering chnages for applications and databasesEduardo Piairo
 
Scaling Your Web Application
Scaling Your Web ApplicationScaling Your Web Application
Scaling Your Web ApplicationKetan Deshmukh
 
Database operations
Database operationsDatabase operations
Database operationsRobert Crane
 
Synergy 2015 Session Slides: SYN408 XenDesktop 7.6 Architecture - Dealing Wit...
Synergy 2015 Session Slides: SYN408 XenDesktop 7.6 Architecture - Dealing Wit...Synergy 2015 Session Slides: SYN408 XenDesktop 7.6 Architecture - Dealing Wit...
Synergy 2015 Session Slides: SYN408 XenDesktop 7.6 Architecture - Dealing Wit...Citrix
 

Similaire à Do More With Less: SQL Central Management Server and Multi-Server Administration (20)

How Not to be a Cranky DBA
How Not to be a Cranky DBAHow Not to be a Cranky DBA
How Not to be a Cranky DBA
 
How not to be a cranky dba
How not to be a cranky dbaHow not to be a cranky dba
How not to be a cranky dba
 
Dba101
Dba101Dba101
Dba101
 
Geek Sync | Field Medic’s Guide to Database Mirroring
Geek Sync | Field Medic’s Guide to Database MirroringGeek Sync | Field Medic’s Guide to Database Mirroring
Geek Sync | Field Medic’s Guide to Database Mirroring
 
Sql interview question part 8
Sql interview question part 8Sql interview question part 8
Sql interview question part 8
 
Ebook8
Ebook8Ebook8
Ebook8
 
Managing SQLserver for the reluctant DBA
Managing SQLserver for the reluctant DBAManaging SQLserver for the reluctant DBA
Managing SQLserver for the reluctant DBA
 
North east user group tour
North east user group tourNorth east user group tour
North east user group tour
 
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent OzarGeek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
Geek Sync | Planning a SQL Server to Azure Migration in 2021 - Brent Ozar
 
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
 
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersKoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
 
5 Quick Wins for the Cloud
5 Quick Wins for the Cloud5 Quick Wins for the Cloud
5 Quick Wins for the Cloud
 
Roman Rehak: 24/7 Database Administration + Database Mail Unleashed
Roman Rehak: 24/7 Database Administration + Database Mail UnleashedRoman Rehak: 24/7 Database Administration + Database Mail Unleashed
Roman Rehak: 24/7 Database Administration + Database Mail Unleashed
 
High Performance Mysql
High Performance MysqlHigh Performance Mysql
High Performance Mysql
 
Ebook11
Ebook11Ebook11
Ebook11
 
Isset Presentation @ EECI2009
Isset Presentation @ EECI2009Isset Presentation @ EECI2009
Isset Presentation @ EECI2009
 
Workshop: Delivering chnages for applications and databases
Workshop: Delivering chnages for applications and databasesWorkshop: Delivering chnages for applications and databases
Workshop: Delivering chnages for applications and databases
 
Scaling Your Web Application
Scaling Your Web ApplicationScaling Your Web Application
Scaling Your Web Application
 
Database operations
Database operationsDatabase operations
Database operations
 
Synergy 2015 Session Slides: SYN408 XenDesktop 7.6 Architecture - Dealing Wit...
Synergy 2015 Session Slides: SYN408 XenDesktop 7.6 Architecture - Dealing Wit...Synergy 2015 Session Slides: SYN408 XenDesktop 7.6 Architecture - Dealing Wit...
Synergy 2015 Session Slides: SYN408 XenDesktop 7.6 Architecture - Dealing Wit...
 

Plus de Mike Hillwig

Recovery and backup for beginners
Recovery and backup for beginnersRecovery and backup for beginners
Recovery and backup for beginnersMike Hillwig
 
Seven Jobs You Should Be Running #sqlsat126
Seven Jobs You Should Be Running #sqlsat126Seven Jobs You Should Be Running #sqlsat126
Seven Jobs You Should Be Running #sqlsat126Mike Hillwig
 
New Server in an Hour #sqlsat121
New Server in an Hour #sqlsat121New Server in an Hour #sqlsat121
New Server in an Hour #sqlsat121Mike Hillwig
 
New Server in an Hour
New Server in an HourNew Server in an Hour
New Server in an HourMike Hillwig
 

Plus de Mike Hillwig (7)

Closing
ClosingClosing
Closing
 
Opening
OpeningOpening
Opening
 
Recovery and backup for beginners
Recovery and backup for beginnersRecovery and backup for beginners
Recovery and backup for beginners
 
Defy the Defaults
Defy the DefaultsDefy the Defaults
Defy the Defaults
 
Seven Jobs You Should Be Running #sqlsat126
Seven Jobs You Should Be Running #sqlsat126Seven Jobs You Should Be Running #sqlsat126
Seven Jobs You Should Be Running #sqlsat126
 
New Server in an Hour #sqlsat121
New Server in an Hour #sqlsat121New Server in an Hour #sqlsat121
New Server in an Hour #sqlsat121
 
New Server in an Hour
New Server in an HourNew Server in an Hour
New Server in an Hour
 

Dernier

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 

Dernier (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 

Do More With Less: SQL Central Management Server and Multi-Server Administration

  • 1. Do More With Less: Inside SQL Central Management Server and Multi-Server Administration
  • 2. Mike Hillwig  SQL Server DBA  Working with SQL Server since SQL 7  Resume includes Acme Packet Oracle, Shawmut Design and Construction, Equitable Resources, Weirton Steel
  • 3.
  • 4. Mike Hillwig  Owned by Two Pugs  Avid Cook  Lover of Blue Cheese  And Bacon  Geek at Heart
  • 5. Obligatory Social Networking Slide  mikehillwig.com  sqlserverpedia.com  twitter.com/mikehillwig  anysocialnetworkingsite/mikehillwig
  • 6. Housekeeping  Don’t let me talk too fast.  Blog post at mikehillwig.com/go/domore  Please send feedback to mike@mikehillwig.com
  • 8. Beware of the Blogs  There is some amazing advice out there. But…  Anybody can put bad advice on the internet  Trust people you know  Assume I’m an idiot  I don’t trust people who say “ALWAYS” or “NEVER”  Test everything in your own test environment first.
  • 9. Before I start…  This crowd scares the crap out of me.  Seriously.  You’re one of the most technical user groups I’ve ever seen.
  • 10. With that said…  This is a new topic for me.  Your feedback is incredibly important  mike@mikehillwig.com
  • 11. Slides and Blog Post  mikehillwig.com/go/domore
  • 12. Tonight’s Topics  Central Management Server  SQL Agent Multi Server Administration
  • 13. Central Management Server  Catalog of Servers  Allows you to synchronously query multiple servers
  • 14. SQL Agent Multi Server  Centralize your SQL Agent Jobs  It’s a Master/Target relationship for the SQL Agent
  • 16. About My Infrastructure  Using a single VM named SLATE with seven instances  You wouldn’t do that. These tools require AD authentication.  I’m too lazy to configure a domain controller
  • 17. Seven Instances  Fred  Wilma  Barney  Betty  Pebbles  BamBam  Bedrock
  • 18. Central Management Server  It’s a catalog of servers  Allows you to break your servers into categories  There is nothing fancy about this technology  Yet it’s a great time saver  The tool you won’t appreciate until you really need it  Allows you to query multiple servers synchronously at once… without PowerShell.
  • 19. Why would I Use this?  Audits (Getting lists of things on multiple servers)  Deployments  Security functions  Creating logins  Disabling logins  Anything that you need to run on multiple servers
  • 20. Demo
  • 21. Important Tables  sysmanagement_shared_server_groups  Contains the groups/folders  sysmanagement_shared_registered_servers  Contains the servers we’ve registered.
  • 22. Important Procedures  sp_sysmanagement_add_shared_server_group  Adds a new group/folder  sp_sysmanagement_add_shared_registered_server  Adds a new server to a group
  • 23. A Note on Connectivity  The Central Management Server is just the catalog.  The machine where you’re running SSMS makes the connections to each server.  If your machine can’t see a server, your connection will fail.
  • 24. A Note on Security  Unless you specifically configure it to use SQL authentication, AD authentication will use YOUR login and not the server’s service account.
  • 25. One more thing…  Your statements and scripts will run synchronously  Do NOT expect your results to come back in a specific order  The order of results appears to be the order of completion
  • 26. Multi-Server Administration  Incredibly cool  Incredibly powerful  The most unsexy technology to come out of Redmond since Microsoft Bob  Has a few quirks  Does have a few serious caveats  Caveats do have workarounds
  • 27. Benefits  Allows you to keep consistency with SQL Agent jobs across multiple servers  It’s a huge time saver when you need to change a script that you regularly run in your environment, such as backup scripts or index/statistics maintenance  When a job is deployed from the master server to targets, they are locked on the target. This enforces consistency.
  • 28. Pitfalls  It can be quirky  Be careful with security  It’s a complete culture shift  When you push a job to target servers, it pushes all of the properties, including the schedules.  Be careful with IO-intensive jobs!
  • 29. Turning That Around  You can still deploy the job without a schedule  Then create a job that uses msdb.dbo.sp_start_job  This allows you to leverage the benefits of a centrally managed server while using the schedule of a local job
  • 30. Demo
  • 31. Notable Tables  sysjobs – All of the jobs you have defined, both local and Multi-Server Jobs  systargetservers – Shows all of your target servers  sysjobservers – Shows what jobs are deployed to what servers
  • 32. Notable Procedures  sp_help_targetserver – Run from the master, shows all of your target servers  Status of 5 means you have a process that is preventing you from downloading instructions  Shows much of the data in systargetservers
  • 33. A Note on Connectivity  This uses the connectivity between servers, not your machine’s connectivity  The pushing of SQL Agent job updates is done on a regularly scheduled polling process
  • 34. A Note on Security  Be very careful with security on this  If you do this wrong, you could set yourself up for issues  If users can manage SQL Agent jobs on your master servers, they can deploy jobs to your target server, even if they don’t have access to that server  Jobs on the target run in the context of the target server’s service account  If you have segregation of duty issues, be very careful who you give access to your master server
  • 35. Wrapping Up  CMS and MSX are very different technologies  Different capabilities  Different use cases  Combining the two gives you a great set of tools
  • 36. One more thing…  Neither CMS and MSX allow the main server to manage themselves  Put both of these tools on an independent box

Notes de l'éditeur

  1. Good advice out there, but… Lots of outdated information. Do DB servers really need 2x RAM for PF?