SlideShare a Scribd company logo
1 of 20
B Y R A H U L S I N G H
MICROSOFT SQL SERVER
ADMINISTRATION
MICROSOFT SQL SERVER
• Introduction
• Installation
• Administering Microsoft SQL Server
• Troubleshooting and Tuning
MICROSOFT SQL SERVER
INTRODUCTION
• MSSQL server is a database software provided by
Microsoft organization
• It handles large databases having millions of records
efficient and effectively
• Data integrity , availability , easy to use is the key aspect
of the product
INSTALLATION
• Considering Editions : Different editions are available to
fulfill variety of needs
(Enterprise , Standard , Business Intelligence)
• Determining hardware requirements (cpu,memory,disk)
• Consolidation with Virtual Servers
• Collation – How data would be sorted consideration on
case sensitivity
CHOOSING A HIGH-AVAILABILITY
SOLUTION
• HA means if you have database and if it goes down then
another server would become active and provide service
• Various methods are available for HA solutions in
Microsoft sql server namely
• Failover clustering
• Database Mirroring
• Log- Shipping
• Replication
• Alwayson
INSTALLING AND UPGRADING
• Choose the features you want to install namely
Database Engine, Replication , BI , Integration Services
• Configuring the Instance (Sp_configure )
• Command-Line Installation vs GUI
• Microsoft SQL Server Upgrade Advisor for upgrading the
server to higher versions
POST INSTALLATIONS
• After post installations there are variety of options which
you need to configure
• Service account through which sql service would run
• Sql Server Network configuration (TCP protocol)
• Setting Minimum and maximum memory allocated to the
sql server
• Enabling Backup Compression
ADMINISTERING MICROSOFT
SQL SERVER
• Policy based management – policy can be created for
example if backup is failed a mail alert would be fire
through the system
• Central Management server – tool is used to configure
multiple servers for example if you need to create a table
on 1000+ server you can create it using a single
command
MANAGING SECURITY
• Windows login can be added for access
• Sql server login can be created for access
• Schema is a logical container in which tables are created
• Many different types of roles and permissions can be
added in the DB instance
• Data can be encrypted
SYSTEM DATABASES
• Sql server has 4 basic types on in built system database
• Master – used for storing configuration information
• Msdb - used for storing scheduling information
• Tempdb- used for temporary operations
• Model - A template for newly db created
DIFFERENT TYPES OF OBJECTS IN DB
• Tables --- Has actual data
• Views --- Virtual table pointing to tables
• Procedures – Programming logics
• Functions - Programming logics not changing the state
of the database
• Constraints – Primary key , Foreign key for maintain
referential integrity
• Data Types – Int, varchar, datetime etc
INDEXING FOR PERFORMANCE
• Index can be created on tables to improve the
performance of the queries
• Varieties of indexes available in sql server namely
• Clustered index
• Non-clustered index
• Full text indexes
• Spatial indexes
• Filtered indexes
• Covering indexes
INDEX MAINTENANCE
• Over a period of time index performance gets degraded
• Fill factor (Page fill option) should be set to 80%
• Index should be rebuild or reorganize to remove any kind
of internal as well as external fragmentation
BACKUPS OF DBS
• Different types of backups are available in sql server to
product namely
• Full Backup which takes entire db backup
• Differential Backup takes backup for data that has been
change since last full backup
• Transactional backup takes backup of data since last
transactional log backup
• First transactional log backup takes data of only
transaction that are mark as inactive in transactional log
backup of the db
RESTORE OF DATABASE
• Recovery models plays a vital role in recovery strategy
• Full , Bulk-logged and simple are available
• Full backup can be restore by simple command
restore db from disk =‘Path’ with recovery
• Differential backup can be restore only by restoring last
full backup with norecovery and then restoring
differential backup it with recovery
AUTOMATING DAILY TASKS
• Database mail – A mail can be sent from the db using
this utilty
• Sql server Agent – A scheduler can be configure which
will trigger as per schedule specified by you
• Various actions can be automated namley Backups ,
index maintenance , business logics using Sql server
agent
MONITORING SERVER
• Performance monitor – A windows tool can be used to
capture cpu, memory , io metrics
• DMVS – Dynamic management views and functions -
best tool to captures queries causing issues
• Activity monitor – GUI tool to monitor Server
performance
• Sql server Profiler – Capture data on demand different
types of events can be captured
OTHER USEFUL TOOLS
• Sql server Audit --- All the activities happening in sql
server can be captured using audit tool
• Extended Events –New tools introduced similar to
profiler but takes very less resources
NEW FEATURES
• Online Index Rebuilds --- Indexes now can be rebuild
online which is only available in enterprise edition
• Database Restores –Gui option given for page level
restores
• Contained Databases – New concept making database
more portable to move across servers
PLEASE LIKE AND SUBSCRIBE/FOLLOW
Thank you

More Related Content

What's hot

Student projects with open source CSQL
Student projects with open source CSQLStudent projects with open source CSQL
Student projects with open source CSQLPrabakaran Thirumalai
 
SQL Explore 2012: P&T Part 2
SQL Explore 2012: P&T Part 2SQL Explore 2012: P&T Part 2
SQL Explore 2012: P&T Part 2sqlserver.co.il
 
Plany Konserwacji SQL Server dla żółtodziobów
Plany Konserwacji SQL Server dla żółtodziobówPlany Konserwacji SQL Server dla żółtodziobów
Plany Konserwacji SQL Server dla żółtodziobówTobias Koprowski
 
Products.intro.forum version
Products.intro.forum versionProducts.intro.forum version
Products.intro.forum versionsqlserver.co.il
 
MySQL Replication Basics
MySQL Replication BasicsMySQL Replication Basics
MySQL Replication BasicsAbdul Manaf
 
SQL Server 2019 CTP2.4
SQL Server 2019 CTP2.4SQL Server 2019 CTP2.4
SQL Server 2019 CTP2.4Gianluca Hotz
 
How to power microservices with MariaDB
How to power microservices with MariaDBHow to power microservices with MariaDB
How to power microservices with MariaDBMariaDB plc
 
Highly Available BizTalk
Highly Available BizTalkHighly Available BizTalk
Highly Available BizTalkDaniel Toomey
 
20090425mysqlslides 12593434194072-phpapp02
20090425mysqlslides 12593434194072-phpapp0220090425mysqlslides 12593434194072-phpapp02
20090425mysqlslides 12593434194072-phpapp02Vinamra Mittal
 
Introducing workload analysis
Introducing workload analysisIntroducing workload analysis
Introducing workload analysisMariaDB plc
 
Adi Sapir ISUG 123 11/10/2012
Adi Sapir ISUG 123 11/10/2012Adi Sapir ISUG 123 11/10/2012
Adi Sapir ISUG 123 11/10/2012sqlserver.co.il
 
Performance dreams of sql server 2014
Performance dreams of sql server 2014Performance dreams of sql server 2014
Performance dreams of sql server 2014Shehap Elnagar
 
SQL Explore 2012: P&T Part 3
SQL Explore 2012: P&T Part 3SQL Explore 2012: P&T Part 3
SQL Explore 2012: P&T Part 3sqlserver.co.il
 
Azure sql database limitations
Azure sql database limitationsAzure sql database limitations
Azure sql database limitationsBRIJESH KUMAR
 
Under the hood: SkySQL monitoring
Under the hood: SkySQL monitoringUnder the hood: SkySQL monitoring
Under the hood: SkySQL monitoringMariaDB plc
 
SQL Explore 2012 - Tzahi Hakikat and Keren Bartal: Extended Events
SQL Explore 2012 - Tzahi Hakikat and Keren Bartal: Extended EventsSQL Explore 2012 - Tzahi Hakikat and Keren Bartal: Extended Events
SQL Explore 2012 - Tzahi Hakikat and Keren Bartal: Extended Eventssqlserver.co.il
 
MariaDB: Connect Storage Engine
MariaDB: Connect Storage EngineMariaDB: Connect Storage Engine
MariaDB: Connect Storage EngineKangaroot
 

What's hot (20)

DAC 2012
DAC 2012DAC 2012
DAC 2012
 
Student projects with open source CSQL
Student projects with open source CSQLStudent projects with open source CSQL
Student projects with open source CSQL
 
SQL Explore 2012: P&T Part 2
SQL Explore 2012: P&T Part 2SQL Explore 2012: P&T Part 2
SQL Explore 2012: P&T Part 2
 
Plany Konserwacji SQL Server dla żółtodziobów
Plany Konserwacji SQL Server dla żółtodziobówPlany Konserwacji SQL Server dla żółtodziobów
Plany Konserwacji SQL Server dla żółtodziobów
 
Products.intro.forum version
Products.intro.forum versionProducts.intro.forum version
Products.intro.forum version
 
MySQL Replication Basics
MySQL Replication BasicsMySQL Replication Basics
MySQL Replication Basics
 
SQL Server Overview
SQL Server OverviewSQL Server Overview
SQL Server Overview
 
SQL Server 2019 CTP2.4
SQL Server 2019 CTP2.4SQL Server 2019 CTP2.4
SQL Server 2019 CTP2.4
 
How to power microservices with MariaDB
How to power microservices with MariaDBHow to power microservices with MariaDB
How to power microservices with MariaDB
 
Highly Available BizTalk
Highly Available BizTalkHighly Available BizTalk
Highly Available BizTalk
 
20090425mysqlslides 12593434194072-phpapp02
20090425mysqlslides 12593434194072-phpapp0220090425mysqlslides 12593434194072-phpapp02
20090425mysqlslides 12593434194072-phpapp02
 
Introducing workload analysis
Introducing workload analysisIntroducing workload analysis
Introducing workload analysis
 
Adi Sapir ISUG 123 11/10/2012
Adi Sapir ISUG 123 11/10/2012Adi Sapir ISUG 123 11/10/2012
Adi Sapir ISUG 123 11/10/2012
 
Performance dreams of sql server 2014
Performance dreams of sql server 2014Performance dreams of sql server 2014
Performance dreams of sql server 2014
 
SQL Explore 2012: P&T Part 3
SQL Explore 2012: P&T Part 3SQL Explore 2012: P&T Part 3
SQL Explore 2012: P&T Part 3
 
Azure sql database limitations
Azure sql database limitationsAzure sql database limitations
Azure sql database limitations
 
MongoDB and DynamoDB
MongoDB and DynamoDBMongoDB and DynamoDB
MongoDB and DynamoDB
 
Under the hood: SkySQL monitoring
Under the hood: SkySQL monitoringUnder the hood: SkySQL monitoring
Under the hood: SkySQL monitoring
 
SQL Explore 2012 - Tzahi Hakikat and Keren Bartal: Extended Events
SQL Explore 2012 - Tzahi Hakikat and Keren Bartal: Extended EventsSQL Explore 2012 - Tzahi Hakikat and Keren Bartal: Extended Events
SQL Explore 2012 - Tzahi Hakikat and Keren Bartal: Extended Events
 
MariaDB: Connect Storage Engine
MariaDB: Connect Storage EngineMariaDB: Connect Storage Engine
MariaDB: Connect Storage Engine
 

Similar to Microsoft sql server database administration

Remote DBA Experts SQL Server 2008 New Features
Remote DBA Experts SQL Server 2008 New FeaturesRemote DBA Experts SQL Server 2008 New Features
Remote DBA Experts SQL Server 2008 New FeaturesRemote DBA Experts
 
Azure SQL Database
Azure SQL Database Azure SQL Database
Azure SQL Database nj-azure
 
Scalable relational database with SQL Azure
Scalable relational database with SQL AzureScalable relational database with SQL Azure
Scalable relational database with SQL AzureShy Engelberg
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsZohar Elkayam
 
Tech-Spark: Azure SQL Databases
Tech-Spark: Azure SQL DatabasesTech-Spark: Azure SQL Databases
Tech-Spark: Azure SQL DatabasesRalph Attard
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Antonios Chatzipavlis
 
Sql server 2012 dba online training
Sql server 2012 dba online trainingSql server 2012 dba online training
Sql server 2012 dba online trainingsqlmasters
 
Good sql server dba online training
Good sql server dba online trainingGood sql server dba online training
Good sql server dba online trainingssmasters
 
Oracle Enterprise Manager 12c: updates and upgrades.
Oracle Enterprise Manager 12c: updates and upgrades.Oracle Enterprise Manager 12c: updates and upgrades.
Oracle Enterprise Manager 12c: updates and upgrades.Rolta
 
Collaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAsCollaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAsNelson Calero
 
Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...
Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...
Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...Denny Lee
 
SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1sqlserver.co.il
 
Sql dba 2008 r2 online training
Sql dba 2008 r2 online trainingSql dba 2008 r2 online training
Sql dba 2008 r2 online trainingsssql
 
PLSSUG - Troubleshoot SQL Server performance problems like a Microsoft Engineer
PLSSUG - Troubleshoot SQL Server performance problems like a Microsoft EngineerPLSSUG - Troubleshoot SQL Server performance problems like a Microsoft Engineer
PLSSUG - Troubleshoot SQL Server performance problems like a Microsoft EngineerMarek Maśko
 
MySQL 5.6 Replication Webinar
MySQL 5.6 Replication WebinarMySQL 5.6 Replication Webinar
MySQL 5.6 Replication WebinarMark Swarbrick
 
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersTobias Koprowski
 
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersKoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersTobias Koprowski
 

Similar to Microsoft sql server database administration (20)

Remote DBA Experts SQL Server 2008 New Features
Remote DBA Experts SQL Server 2008 New FeaturesRemote DBA Experts SQL Server 2008 New Features
Remote DBA Experts SQL Server 2008 New Features
 
Azure SQL Database
Azure SQL Database Azure SQL Database
Azure SQL Database
 
Scalable relational database with SQL Azure
Scalable relational database with SQL AzureScalable relational database with SQL Azure
Scalable relational database with SQL Azure
 
Topic1
Topic1Topic1
Topic1
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
Tech-Spark: Azure SQL Databases
Tech-Spark: Azure SQL DatabasesTech-Spark: Azure SQL Databases
Tech-Spark: Azure SQL Databases
 
Azure data platform overview
Azure data platform overviewAzure data platform overview
Azure data platform overview
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
 
Sql server 2012 dba online training
Sql server 2012 dba online trainingSql server 2012 dba online training
Sql server 2012 dba online training
 
Good sql server dba online training
Good sql server dba online trainingGood sql server dba online training
Good sql server dba online training
 
Oracle Enterprise Manager 12c: updates and upgrades.
Oracle Enterprise Manager 12c: updates and upgrades.Oracle Enterprise Manager 12c: updates and upgrades.
Oracle Enterprise Manager 12c: updates and upgrades.
 
Collaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAsCollaborate 2012 - Administering MySQL for Oracle DBAs
Collaborate 2012 - Administering MySQL for Oracle DBAs
 
Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...
Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...
Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...
 
SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1
 
Sql dba 2008 r2 online training
Sql dba 2008 r2 online trainingSql dba 2008 r2 online training
Sql dba 2008 r2 online training
 
PLSSUG - Troubleshoot SQL Server performance problems like a Microsoft Engineer
PLSSUG - Troubleshoot SQL Server performance problems like a Microsoft EngineerPLSSUG - Troubleshoot SQL Server performance problems like a Microsoft Engineer
PLSSUG - Troubleshoot SQL Server performance problems like a Microsoft Engineer
 
Breaking data
Breaking dataBreaking data
Breaking data
 
MySQL 5.6 Replication Webinar
MySQL 5.6 Replication WebinarMySQL 5.6 Replication Webinar
MySQL 5.6 Replication Webinar
 
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginnersKoprowskiT_SQLSat409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
 
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginnersKoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
 

More from Rahul Singh

PMP Project management simple to complex | Rahul Singh
PMP Project management simple to complex | Rahul SinghPMP Project management simple to complex | Rahul Singh
PMP Project management simple to complex | Rahul SinghRahul Singh
 
Microsoft sql server integration services| Rahul Singh
Microsoft sql server integration services| Rahul Singh Microsoft sql server integration services| Rahul Singh
Microsoft sql server integration services| Rahul Singh Rahul Singh
 
Bhagavad gita 18 chapters summary | Rahul Singh
Bhagavad gita 18 chapters summary | Rahul SinghBhagavad gita 18 chapters summary | Rahul Singh
Bhagavad gita 18 chapters summary | Rahul SinghRahul Singh
 
Public speaking |Practice and Methods | Rahul Gulab Singh
Public speaking |Practice and Methods | Rahul Gulab SinghPublic speaking |Practice and Methods | Rahul Gulab Singh
Public speaking |Practice and Methods | Rahul Gulab SinghRahul Singh
 
How to manage people | Managers |Rahul Gulab SIngh
How to manage people | Managers |Rahul Gulab SInghHow to manage people | Managers |Rahul Gulab SIngh
How to manage people | Managers |Rahul Gulab SInghRahul Singh
 
Big data | Hadoop | components of hadoop |Rahul Gulab Sing
Big data | Hadoop | components of hadoop |Rahul Gulab SingBig data | Hadoop | components of hadoop |Rahul Gulab Sing
Big data | Hadoop | components of hadoop |Rahul Gulab SingRahul Singh
 
Database Performance Tuning| Rahul Gulab Singh
Database Performance Tuning| Rahul Gulab SinghDatabase Performance Tuning| Rahul Gulab Singh
Database Performance Tuning| Rahul Gulab SinghRahul Singh
 
Data scientist Methods | Artificial Intelligence | Rahul Gulab Singh
Data scientist Methods  | Artificial Intelligence | Rahul Gulab SinghData scientist Methods  | Artificial Intelligence | Rahul Gulab Singh
Data scientist Methods | Artificial Intelligence | Rahul Gulab SinghRahul Singh
 
Amazon web services | Cloud Computing |Rahul SIngh
Amazon web services | Cloud Computing |Rahul SInghAmazon web services | Cloud Computing |Rahul SIngh
Amazon web services | Cloud Computing |Rahul SInghRahul Singh
 
Attitude is everything | Rahul Singh
Attitude is everything | Rahul SinghAttitude is everything | Rahul Singh
Attitude is everything | Rahul SinghRahul Singh
 

More from Rahul Singh (10)

PMP Project management simple to complex | Rahul Singh
PMP Project management simple to complex | Rahul SinghPMP Project management simple to complex | Rahul Singh
PMP Project management simple to complex | Rahul Singh
 
Microsoft sql server integration services| Rahul Singh
Microsoft sql server integration services| Rahul Singh Microsoft sql server integration services| Rahul Singh
Microsoft sql server integration services| Rahul Singh
 
Bhagavad gita 18 chapters summary | Rahul Singh
Bhagavad gita 18 chapters summary | Rahul SinghBhagavad gita 18 chapters summary | Rahul Singh
Bhagavad gita 18 chapters summary | Rahul Singh
 
Public speaking |Practice and Methods | Rahul Gulab Singh
Public speaking |Practice and Methods | Rahul Gulab SinghPublic speaking |Practice and Methods | Rahul Gulab Singh
Public speaking |Practice and Methods | Rahul Gulab Singh
 
How to manage people | Managers |Rahul Gulab SIngh
How to manage people | Managers |Rahul Gulab SInghHow to manage people | Managers |Rahul Gulab SIngh
How to manage people | Managers |Rahul Gulab SIngh
 
Big data | Hadoop | components of hadoop |Rahul Gulab Sing
Big data | Hadoop | components of hadoop |Rahul Gulab SingBig data | Hadoop | components of hadoop |Rahul Gulab Sing
Big data | Hadoop | components of hadoop |Rahul Gulab Sing
 
Database Performance Tuning| Rahul Gulab Singh
Database Performance Tuning| Rahul Gulab SinghDatabase Performance Tuning| Rahul Gulab Singh
Database Performance Tuning| Rahul Gulab Singh
 
Data scientist Methods | Artificial Intelligence | Rahul Gulab Singh
Data scientist Methods  | Artificial Intelligence | Rahul Gulab SinghData scientist Methods  | Artificial Intelligence | Rahul Gulab Singh
Data scientist Methods | Artificial Intelligence | Rahul Gulab Singh
 
Amazon web services | Cloud Computing |Rahul SIngh
Amazon web services | Cloud Computing |Rahul SInghAmazon web services | Cloud Computing |Rahul SIngh
Amazon web services | Cloud Computing |Rahul SIngh
 
Attitude is everything | Rahul Singh
Attitude is everything | Rahul SinghAttitude is everything | Rahul Singh
Attitude is everything | Rahul Singh
 

Recently uploaded

Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxnada99848
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 

Recently uploaded (20)

Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptx
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 

Microsoft sql server database administration

  • 1. B Y R A H U L S I N G H MICROSOFT SQL SERVER ADMINISTRATION
  • 2. MICROSOFT SQL SERVER • Introduction • Installation • Administering Microsoft SQL Server • Troubleshooting and Tuning
  • 3. MICROSOFT SQL SERVER INTRODUCTION • MSSQL server is a database software provided by Microsoft organization • It handles large databases having millions of records efficient and effectively • Data integrity , availability , easy to use is the key aspect of the product
  • 4. INSTALLATION • Considering Editions : Different editions are available to fulfill variety of needs (Enterprise , Standard , Business Intelligence) • Determining hardware requirements (cpu,memory,disk) • Consolidation with Virtual Servers • Collation – How data would be sorted consideration on case sensitivity
  • 5. CHOOSING A HIGH-AVAILABILITY SOLUTION • HA means if you have database and if it goes down then another server would become active and provide service • Various methods are available for HA solutions in Microsoft sql server namely • Failover clustering • Database Mirroring • Log- Shipping • Replication • Alwayson
  • 6. INSTALLING AND UPGRADING • Choose the features you want to install namely Database Engine, Replication , BI , Integration Services • Configuring the Instance (Sp_configure ) • Command-Line Installation vs GUI • Microsoft SQL Server Upgrade Advisor for upgrading the server to higher versions
  • 7. POST INSTALLATIONS • After post installations there are variety of options which you need to configure • Service account through which sql service would run • Sql Server Network configuration (TCP protocol) • Setting Minimum and maximum memory allocated to the sql server • Enabling Backup Compression
  • 8. ADMINISTERING MICROSOFT SQL SERVER • Policy based management – policy can be created for example if backup is failed a mail alert would be fire through the system • Central Management server – tool is used to configure multiple servers for example if you need to create a table on 1000+ server you can create it using a single command
  • 9. MANAGING SECURITY • Windows login can be added for access • Sql server login can be created for access • Schema is a logical container in which tables are created • Many different types of roles and permissions can be added in the DB instance • Data can be encrypted
  • 10. SYSTEM DATABASES • Sql server has 4 basic types on in built system database • Master – used for storing configuration information • Msdb - used for storing scheduling information • Tempdb- used for temporary operations • Model - A template for newly db created
  • 11. DIFFERENT TYPES OF OBJECTS IN DB • Tables --- Has actual data • Views --- Virtual table pointing to tables • Procedures – Programming logics • Functions - Programming logics not changing the state of the database • Constraints – Primary key , Foreign key for maintain referential integrity • Data Types – Int, varchar, datetime etc
  • 12. INDEXING FOR PERFORMANCE • Index can be created on tables to improve the performance of the queries • Varieties of indexes available in sql server namely • Clustered index • Non-clustered index • Full text indexes • Spatial indexes • Filtered indexes • Covering indexes
  • 13. INDEX MAINTENANCE • Over a period of time index performance gets degraded • Fill factor (Page fill option) should be set to 80% • Index should be rebuild or reorganize to remove any kind of internal as well as external fragmentation
  • 14. BACKUPS OF DBS • Different types of backups are available in sql server to product namely • Full Backup which takes entire db backup • Differential Backup takes backup for data that has been change since last full backup • Transactional backup takes backup of data since last transactional log backup • First transactional log backup takes data of only transaction that are mark as inactive in transactional log backup of the db
  • 15. RESTORE OF DATABASE • Recovery models plays a vital role in recovery strategy • Full , Bulk-logged and simple are available • Full backup can be restore by simple command restore db from disk =‘Path’ with recovery • Differential backup can be restore only by restoring last full backup with norecovery and then restoring differential backup it with recovery
  • 16. AUTOMATING DAILY TASKS • Database mail – A mail can be sent from the db using this utilty • Sql server Agent – A scheduler can be configure which will trigger as per schedule specified by you • Various actions can be automated namley Backups , index maintenance , business logics using Sql server agent
  • 17. MONITORING SERVER • Performance monitor – A windows tool can be used to capture cpu, memory , io metrics • DMVS – Dynamic management views and functions - best tool to captures queries causing issues • Activity monitor – GUI tool to monitor Server performance • Sql server Profiler – Capture data on demand different types of events can be captured
  • 18. OTHER USEFUL TOOLS • Sql server Audit --- All the activities happening in sql server can be captured using audit tool • Extended Events –New tools introduced similar to profiler but takes very less resources
  • 19. NEW FEATURES • Online Index Rebuilds --- Indexes now can be rebuild online which is only available in enterprise edition • Database Restores –Gui option given for page level restores • Contained Databases – New concept making database more portable to move across servers
  • 20. PLEASE LIKE AND SUBSCRIBE/FOLLOW Thank you