SlideShare a Scribd company logo
1 of 20
palais des
congrès
Paris



7, 8 et 9
février 2012
SQL Server Best Practices
          Le top 10…N 
07/02/2012

Nadia Ben El Kadi
Technology Specialist – SQL Server/BI
Microsoft France
Agenda
  Introduction
  Sizing SQL Server
  Best Practice Before Installation
  Best Practice Installation
  Best Practice Post Installation
  Database Best Practices
  Maintenance Best Practices
  Performance Best Practices
  Monitoring Best Practices
  DBA Administration Tasks /DBA
  ToolBox
  Consolidation Best Practices
Choose the right HW & Server
 Server choice depends on many factors
      Olap / Oltp / BI
      Transactions/sec needs
      DB size / Cube size
      Concurent users
      Network bandwidth
      HA / Virtu / Conso
      Storage type
 Ask your HW vendor : They have sizers for SQL
      Dell : SQL Advisor
      HP Sizer for SQL Server
      Etc…
 SQL Server Appliance now available
      FastTrack (HP Bull, Emc, IBM, Cisco, Dell)
                    ,
      PDW (HP Dell)
                ,
      Business Decision Appliance (HP BI Appliance)
      DB Consolidation Appliance (HP) --- based on hyperV/SystemCenter
      OLTP Appliance : coming soon
IO Best Practices for SQL Server
   Basics for SQL - Types of IO :
     Read vs Write

     Sequential vs random

   For OLTP: write-intensive & Random access
     Generally random for both reads & writes against data

       files.
     Log writes are sequential in nature

   For OLAP : mostly reads operation & sequential access
     Reads and writes tend to be sequential in nature
Summarized I/O Activity of RAID Levels and Their Recommended Use
  http://technet.microsoft.com/en-us/library/cc966414.aspx
RAID Levels                 RAID0                                                              RAID1                                                                RAID5                                         RAID10

Reliability                 Lowest.                                                            Very good.                                                           Good.                                         Excellent.
                            Lack of fault tolerance results in data loss.                      Even better with duplexing.                                          Can tolerate single machine fault.




Storage Efficiency          100%                                                               50%                                                                  >50%, <100%                                   50%
                                                                                                                                                                    (#drives -1/#drives)


Random Read                 Excellent                                                          Fair                                                                 Excellent.                                    Excellent.
                                                                                               Worst of the RAID levels but better than a single drive.




Random Write                Excellent.                                                         Fair.                                                                Fair.                                         Very good.
                                                                                               Worse than a single drive but better than some RAID levels.          Generally better with larger stripe sizes.




Sequential Read             Excellent.                                                         Fair.                                                                Very good.                                    Excellent.
                                                                                               Comparable to a single drive.                                        Generally, better with smaller stripe sizes




Sequential Write            Excellent.                                                         Good.                                                                Fair.                                         Very good.
                                                                                               Better than other RAID levels.




Cost                        Lowest.                                                            Moderate.                                                            Moderate.                                     High.
                                                                                               Relatively high cost due to redundant drives; however, no
                                                                                               expensive controller required




Recommended use             Good for non-critical data or stagnantly updated data that gets    Good for data that requires high fault tolerance at relatively low   Very good for Read only data.                 Data requiring high performance for both read and write and
                            backed up regularly or any data requiring fast write performance   hardware cost (redundancy using parity requires more expensive                                                     excellent reliability while trading off storage efficiency and cost.
                            at very low cost. Great for testing.                               hardware). Best for log files.
Installation - SQL Setup
 Choose the right Edition depending on your needs
   Standard

   Enterprise

   BI Edition (new in SQL2012)

 Install only features/components you need !

 Preferred Install is unattended
     Especially for cluster Add node
Service Pack
   Recommended to install
   For Clusters : Rolling Upgrades supported since SQL2008
   «Slipstream» new installations : Since SQL2008 , the slipstream
   functionality performs a single installs that is quicker when
   compared to installing the original release and then applying
   the service pack.
   Cumulative Updates : CU install only when you address a
   problem or if there is a security fix
SQL Post Setup Configuration 1/2
  Traceflag 1117
        This Traceflag equally grows all datafiles together
        Best Practice for SharePoint and Dynamics AX
  Configure SQL Server Memory
        Set max server memory to leave Memory to OS
               1 GB for OS if Ram < 8 GB
               2 GB for OS if Ram > 8 GB
               4 GB for OS if Ram > 128 GB)
        Tune this according to other SQL Server instances/ applications running on the
         system
  Advanced options
        Set MAXDOP to 1 for OLTP like workload
               Best Practice for MS ERP Dynamics AX/ MS CRM/SharePoint …
        For OLAP like workload, MAXDOP should be at least on 2 (star join query
         optimization)
Database Design Recommendations

    Take care to initial size and file growth options.
          Monitor growth : Configure Autogrow but try to make sure it’s not used
    Use instant file initialization for performance optimization
    Use partitioning for better large database manageability.
    Transaction log : Isolate log from data at the physical level
    TEMPDB : as See White paper
    Best Practice SQL & Antivirus : http://support.microsoft.com/kb/309422/en-us
Databases Options Best Practices
  SET RECOVERY Model : Depend of your DRP
    Full for production OLTP app

    Bulk-Logged for OLAP app

    Simple on your Dev servers

  Auto Shrink set to OFF
  Auto Close set to OFF
  Autogrow set with « Mb » and not « % »
  Page Verify set to « Checksum »
Maintenance : Best Practices
   Backup Databases / Log
   Integrity Checks : DBCC CHECKDB
   Optimization
   Purge History Tables
Performance – Best Practices
  Most common Performance issues came from
   Wrong server configuration (io, config…)
       But if you have followed BestPractices, it should be OK 

   DB DESIGN ISSUES

       Missing Indexes or non-optimal index choices

       Bad statistics / Fragmentation

   QUERIES ISSUES

       Queries using functions on Indexed columns (Implicit
         conversion)
              Ex : Select …From …Where Upper (nom) = …
         Quering that generate Scan operations
            Ex : operator « like ‘%’ » : You should use FTS indexes
Monitoring – Best Practices
                                             HOW
       WHAT
 Monitor Services                  Use a Monitoring/supervision tool
   Instances
                                   when possible (exple : SCOM)
   HA mecanisms
                                   SQL Agent Alert mecanism
 Monitor Windows Performance       Configure Database Mail (SMTP
     Memory, Cpu, IO              support with SQL Server) to recieve
                                   automatic alerts
 Monitor SQL Performance
     Top counters in BOL          Standard Reports / DMV
 Monitor File sizes                UCP : CPU usage & Disk Usage
 Monitor SQL Server Errorlogs      PDC : more rich
     Filter with Error Severity   Automate as many of these day-to-day
 Verify SQL Server Agent Jobs      tasks as possible
     To rack failure
Basic Tasks for a DBA

     SQL server components installation
     SQL Server daily Administration
         Manage Production servers
         Create /update DBs, Configure HA, Support , etc…
         Manage Security access
     Monitor SQL Instances  Check Supervision results
         Try to automate via emails
     Maintenances Tasks
     Create / Maintain / test DRP procedures
     Optimize performances
     Document changes
     More & more : BI component administration
         SSIS / SSAS / SSRS / MDS /DQS
         Sharepoint Integration (Powerpivot)

            … and probably much more…
DBA ToolBOX
Best Practice Configuration Tools

    MAP Toolkit (included now in Steup tools)
    MBSA : MS Baseline Security
    BPA : Best Practices Analyzer
    PBP – Policies management
    SQL Upgrade Advisor for upgrade

Best Practice Troubleshooting/Performance/Tunning Tools

    DMV
    SQL Profiler
    SQL DTA
    PSSDIAG
    RML utilities
    PAL
Consolidation – Best Practices
 Why Consolidate:
     Lack of space in the data center                      Check White papers :
     Better utilization of hardware resources, either of        BestPractices for SQL server Consolidation
      existing servers or in conjunction with the           http://msdn.microsoft.com/en-
      acquisition of new, more powerful servers
                                                            us/library/ee819082(v=sql.100).aspx
     Standardization and centralization of
      Administration & Maintenance                               BestPractices for SSAS Consolidation
     Green-IT                                              http://sqlcat.com/sqlcat/b/technicalnotes/archive/2010/0
 Scénarios                                                  2/08/microsoft-sql-server-2008-analysis-services-
     Consolidate many DBs in 1 instance : reduce           consolidation-best-practices.aspx
      number of instances
     Consolidate different instances on 1 server :
      reduce number of servers
     Virtualisation : consolidate many servers on a
      Host
Conclusion
  Use SQL Server Books Online
MERCI
Très bon TECHDAYS 2012
  avec SQL Server 2012
Pour aller plus loin…
   Venez nous voir sur le stand SQL Server
     Retrouvez les experts Microsoft et MVP

     Assistez à des présentations des offres de nos partenaires



   Inscrivez-vous au « Virtual Launch Event » du 8 mars :
   http://aka.ms/vlefrance

   Visitez notre nouveau site : http://www.microsoft.fr/sql

   Evaluez dès aujourd’hui SQL Server 2012
     En téléchargeant la RC0 : http://aka.ms/sql2012

     En suivant nos « Virtual Labs » : http://aka.ms/sqllabs

More Related Content

What's hot

Sun Storage F5100 Flash Array, Redefining Storage Performance and Efficiency-...
Sun Storage F5100 Flash Array, Redefining Storage Performance and Efficiency-...Sun Storage F5100 Flash Array, Redefining Storage Performance and Efficiency-...
Sun Storage F5100 Flash Array, Redefining Storage Performance and Efficiency-...Agora Group
 
Using multi tiered storage systems for storing both structured & unstructured...
Using multi tiered storage systems for storing both structured & unstructured...Using multi tiered storage systems for storing both structured & unstructured...
Using multi tiered storage systems for storing both structured & unstructured...ORACLE USER GROUP ESTONIA
 
Apache hbase for the enterprise (Strata+Hadoop World 2012)
Apache hbase for the enterprise (Strata+Hadoop World 2012)Apache hbase for the enterprise (Strata+Hadoop World 2012)
Apache hbase for the enterprise (Strata+Hadoop World 2012)jmhsieh
 
Handling Massive Writes
Handling Massive WritesHandling Massive Writes
Handling Massive WritesLiran Zelkha
 
V mware virtual san 5.5 deep dive
V mware virtual san 5.5 deep diveV mware virtual san 5.5 deep dive
V mware virtual san 5.5 deep divesolarisyougood
 
Expanding dr with_zfssa_110810
Expanding dr with_zfssa_110810Expanding dr with_zfssa_110810
Expanding dr with_zfssa_110810rjmurphyslideshare
 
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site GrowthWhy Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site GrowthClustrix
 
End of RAID as we know it with Ceph Replication
End of RAID as we know it with Ceph ReplicationEnd of RAID as we know it with Ceph Replication
End of RAID as we know it with Ceph ReplicationCeph Community
 

What's hot (8)

Sun Storage F5100 Flash Array, Redefining Storage Performance and Efficiency-...
Sun Storage F5100 Flash Array, Redefining Storage Performance and Efficiency-...Sun Storage F5100 Flash Array, Redefining Storage Performance and Efficiency-...
Sun Storage F5100 Flash Array, Redefining Storage Performance and Efficiency-...
 
Using multi tiered storage systems for storing both structured & unstructured...
Using multi tiered storage systems for storing both structured & unstructured...Using multi tiered storage systems for storing both structured & unstructured...
Using multi tiered storage systems for storing both structured & unstructured...
 
Apache hbase for the enterprise (Strata+Hadoop World 2012)
Apache hbase for the enterprise (Strata+Hadoop World 2012)Apache hbase for the enterprise (Strata+Hadoop World 2012)
Apache hbase for the enterprise (Strata+Hadoop World 2012)
 
Handling Massive Writes
Handling Massive WritesHandling Massive Writes
Handling Massive Writes
 
V mware virtual san 5.5 deep dive
V mware virtual san 5.5 deep diveV mware virtual san 5.5 deep dive
V mware virtual san 5.5 deep dive
 
Expanding dr with_zfssa_110810
Expanding dr with_zfssa_110810Expanding dr with_zfssa_110810
Expanding dr with_zfssa_110810
 
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site GrowthWhy Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
 
End of RAID as we know it with Ceph Replication
End of RAID as we know it with Ceph ReplicationEnd of RAID as we know it with Ceph Replication
End of RAID as we know it with Ceph Replication
 

Viewers also liked

Sql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices ISql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices ICarlos Oliveira
 
Challenger Banks in Europe: Challenge Accepted
Challenger Banks in Europe: Challenge AcceptedChallenger Banks in Europe: Challenge Accepted
Challenger Banks in Europe: Challenge AcceptedFrontline Ventures
 
Social Network Analysis & an Introduction to Tools
Social Network Analysis & an Introduction to ToolsSocial Network Analysis & an Introduction to Tools
Social Network Analysis & an Introduction to ToolsPatti Anklam
 
The Buyer's Journey - by Chris Lema
The Buyer's Journey - by Chris LemaThe Buyer's Journey - by Chris Lema
The Buyer's Journey - by Chris LemaChris Lema
 

Viewers also liked (7)

Sql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices ISql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices I
 
KM 101
KM 101KM 101
KM 101
 
Challenger Banks in Europe: Challenge Accepted
Challenger Banks in Europe: Challenge AcceptedChallenger Banks in Europe: Challenge Accepted
Challenger Banks in Europe: Challenge Accepted
 
SQL Server 2012 Best Practices
SQL Server 2012 Best PracticesSQL Server 2012 Best Practices
SQL Server 2012 Best Practices
 
The Irish Tech Startup Guide
The Irish Tech Startup GuideThe Irish Tech Startup Guide
The Irish Tech Startup Guide
 
Social Network Analysis & an Introduction to Tools
Social Network Analysis & an Introduction to ToolsSocial Network Analysis & an Introduction to Tools
Social Network Analysis & an Introduction to Tools
 
The Buyer's Journey - by Chris Lema
The Buyer's Journey - by Chris LemaThe Buyer's Journey - by Chris Lema
The Buyer's Journey - by Chris Lema
 

Similar to Le Top 10 des Best Practices pour SQL Server

Overview of Redundant Disk Arrays
Overview of Redundant Disk ArraysOverview of Redundant Disk Arrays
Overview of Redundant Disk ArraysAndrew Robinson
 
Sql saturday powerpoint dc_san
Sql saturday powerpoint dc_sanSql saturday powerpoint dc_san
Sql saturday powerpoint dc_sanJoseph D'Antoni
 
Demystifying Storage - Building large SANs
Demystifying  Storage - Building large SANsDemystifying  Storage - Building large SANs
Demystifying Storage - Building large SANsDirecti Group
 
112667416 raid-seminar
112667416 raid-seminar112667416 raid-seminar
112667416 raid-seminarabhivicram
 
San presentation nov 2012 central pa
San presentation nov 2012 central paSan presentation nov 2012 central pa
San presentation nov 2012 central paJoseph D'Antoni
 
Demystifying Storage
Demystifying  StorageDemystifying  Storage
Demystifying Storagebhavintu79
 
Present of Raid and Its Type
Present of Raid and Its TypePresent of Raid and Its Type
Present of Raid and Its TypeUsama ahmad
 
Day 2 General Session Presentations RedisConf
Day 2 General Session Presentations RedisConfDay 2 General Session Presentations RedisConf
Day 2 General Session Presentations RedisConfRedis Labs
 
RDS for MySQL, No BS Operations and Patterns
RDS for MySQL, No BS Operations and PatternsRDS for MySQL, No BS Operations and Patterns
RDS for MySQL, No BS Operations and PatternsLaine Campbell
 
Presentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsPresentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsKuber Chandra
 

Similar to Le Top 10 des Best Practices pour SQL Server (20)

Raid
Raid Raid
Raid
 
Overview of Redundant Disk Arrays
Overview of Redundant Disk ArraysOverview of Redundant Disk Arrays
Overview of Redundant Disk Arrays
 
Sql saturday powerpoint dc_san
Sql saturday powerpoint dc_sanSql saturday powerpoint dc_san
Sql saturday powerpoint dc_san
 
Demystifying Storage - Building large SANs
Demystifying  Storage - Building large SANsDemystifying  Storage - Building large SANs
Demystifying Storage - Building large SANs
 
1.2 raid
1.2  raid1.2  raid
1.2 raid
 
112667416 raid-seminar
112667416 raid-seminar112667416 raid-seminar
112667416 raid-seminar
 
RAID seminar
RAID seminarRAID seminar
RAID seminar
 
RAID CONCEPT
RAID CONCEPTRAID CONCEPT
RAID CONCEPT
 
Firebird and RAID
Firebird and RAIDFirebird and RAID
Firebird and RAID
 
RAID LEVELS
RAID LEVELSRAID LEVELS
RAID LEVELS
 
San presentation nov 2012 central pa
San presentation nov 2012 central paSan presentation nov 2012 central pa
San presentation nov 2012 central pa
 
Demystifying Storage
Demystifying  StorageDemystifying  Storage
Demystifying Storage
 
Raid level
Raid levelRaid level
Raid level
 
RAID
RAIDRAID
RAID
 
Present of Raid and Its Type
Present of Raid and Its TypePresent of Raid and Its Type
Present of Raid and Its Type
 
Day 2 General Session Presentations RedisConf
Day 2 General Session Presentations RedisConfDay 2 General Session Presentations RedisConf
Day 2 General Session Presentations RedisConf
 
RDS for MySQL, No BS Operations and Patterns
RDS for MySQL, No BS Operations and PatternsRDS for MySQL, No BS Operations and Patterns
RDS for MySQL, No BS Operations and Patterns
 
Presentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsPresentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) Basics
 
Raid+controllers
Raid+controllersRaid+controllers
Raid+controllers
 
Raid 5
Raid 5Raid 5
Raid 5
 

More from Microsoft Technet France

Automatisez, visualisez et améliorez vos processus d’entreprise avec Nintex
Automatisez, visualisez et améliorez vos processus d’entreprise avec Nintex Automatisez, visualisez et améliorez vos processus d’entreprise avec Nintex
Automatisez, visualisez et améliorez vos processus d’entreprise avec Nintex Microsoft Technet France
 
Comment réussir votre déploiement de Windows 10
Comment réussir votre déploiement de Windows 10Comment réussir votre déploiement de Windows 10
Comment réussir votre déploiement de Windows 10Microsoft Technet France
 
Fusion, Acquisition - Optimisez la migration et la continuité des outils col...
 Fusion, Acquisition - Optimisez la migration et la continuité des outils col... Fusion, Acquisition - Optimisez la migration et la continuité des outils col...
Fusion, Acquisition - Optimisez la migration et la continuité des outils col...Microsoft Technet France
 
Wavestone déploie son portail Powell 365 en 5 semaines
Wavestone déploie son portail Powell 365 en 5 semainesWavestone déploie son portail Powell 365 en 5 semaines
Wavestone déploie son portail Powell 365 en 5 semainesMicrosoft Technet France
 
Retour d’expérience sur le monitoring et la sécurisation des identités Azure
Retour d’expérience sur le monitoring et la sécurisation des identités AzureRetour d’expérience sur le monitoring et la sécurisation des identités Azure
Retour d’expérience sur le monitoring et la sécurisation des identités AzureMicrosoft Technet France
 
Scénarios de mobilité couverts par Enterprise Mobility + Security
Scénarios de mobilité couverts par Enterprise Mobility + SecurityScénarios de mobilité couverts par Enterprise Mobility + Security
Scénarios de mobilité couverts par Enterprise Mobility + SecurityMicrosoft Technet France
 
SharePoint Framework : le développement SharePoint nouvelle génération
SharePoint Framework : le développement SharePoint nouvelle générationSharePoint Framework : le développement SharePoint nouvelle génération
SharePoint Framework : le développement SharePoint nouvelle générationMicrosoft Technet France
 
Stockage Cloud : il y en aura pour tout le monde
Stockage Cloud : il y en aura pour tout le mondeStockage Cloud : il y en aura pour tout le monde
Stockage Cloud : il y en aura pour tout le mondeMicrosoft Technet France
 
Bien appréhender le concept de Windows As a Service
Bien appréhender le concept de Windows As a ServiceBien appréhender le concept de Windows As a Service
Bien appréhender le concept de Windows As a ServiceMicrosoft Technet France
 
Protéger vos données avec le chiffrement dans Azure et Office 365
Protéger vos données avec le chiffrement dans Azure et Office 365Protéger vos données avec le chiffrement dans Azure et Office 365
Protéger vos données avec le chiffrement dans Azure et Office 365Microsoft Technet France
 
Protéger votre patrimoine informationnel dans un monde hybride avec Azure Inf...
Protéger votre patrimoine informationnel dans un monde hybride avec Azure Inf...Protéger votre patrimoine informationnel dans un monde hybride avec Azure Inf...
Protéger votre patrimoine informationnel dans un monde hybride avec Azure Inf...Microsoft Technet France
 
Comprendre la stratégie identité de Microsoft
Comprendre la stratégie identité de MicrosoftComprendre la stratégie identité de Microsoft
Comprendre la stratégie identité de MicrosoftMicrosoft Technet France
 
Vous avez dit « authentification sans mot de passe » : une illustration avec ...
Vous avez dit « authentification sans mot de passe » : une illustration avec ...Vous avez dit « authentification sans mot de passe » : une illustration avec ...
Vous avez dit « authentification sans mot de passe » : une illustration avec ...Microsoft Technet France
 
Déploiement hybride, la téléphonie dans le cloud
Déploiement hybride, la téléphonie dans le cloudDéploiement hybride, la téléphonie dans le cloud
Déploiement hybride, la téléphonie dans le cloudMicrosoft Technet France
 
Supervisez la qualité des appels Skype for Business Online à l'aide de Call Q...
Supervisez la qualité des appels Skype for Business Online à l'aide de Call Q...Supervisez la qualité des appels Skype for Business Online à l'aide de Call Q...
Supervisez la qualité des appels Skype for Business Online à l'aide de Call Q...Microsoft Technet France
 
SharePoint 2016 : architecture, déploiement et topologies hybrides
SharePoint 2016 : architecture, déploiement et topologies hybridesSharePoint 2016 : architecture, déploiement et topologies hybrides
SharePoint 2016 : architecture, déploiement et topologies hybridesMicrosoft Technet France
 
Gestion de Windows 10 et des applications dans l'entreprise moderne
Gestion de Windows 10 et des applications dans l'entreprise moderneGestion de Windows 10 et des applications dans l'entreprise moderne
Gestion de Windows 10 et des applications dans l'entreprise moderneMicrosoft Technet France
 
Office 365 dans votre Système d'Informations
Office 365 dans votre Système d'InformationsOffice 365 dans votre Système d'Informations
Office 365 dans votre Système d'InformationsMicrosoft Technet France
 

More from Microsoft Technet France (20)

Automatisez, visualisez et améliorez vos processus d’entreprise avec Nintex
Automatisez, visualisez et améliorez vos processus d’entreprise avec Nintex Automatisez, visualisez et améliorez vos processus d’entreprise avec Nintex
Automatisez, visualisez et améliorez vos processus d’entreprise avec Nintex
 
Comment réussir votre déploiement de Windows 10
Comment réussir votre déploiement de Windows 10Comment réussir votre déploiement de Windows 10
Comment réussir votre déploiement de Windows 10
 
OMS log search au quotidien
OMS log search au quotidienOMS log search au quotidien
OMS log search au quotidien
 
Fusion, Acquisition - Optimisez la migration et la continuité des outils col...
 Fusion, Acquisition - Optimisez la migration et la continuité des outils col... Fusion, Acquisition - Optimisez la migration et la continuité des outils col...
Fusion, Acquisition - Optimisez la migration et la continuité des outils col...
 
Wavestone déploie son portail Powell 365 en 5 semaines
Wavestone déploie son portail Powell 365 en 5 semainesWavestone déploie son portail Powell 365 en 5 semaines
Wavestone déploie son portail Powell 365 en 5 semaines
 
Retour d’expérience sur le monitoring et la sécurisation des identités Azure
Retour d’expérience sur le monitoring et la sécurisation des identités AzureRetour d’expérience sur le monitoring et la sécurisation des identités Azure
Retour d’expérience sur le monitoring et la sécurisation des identités Azure
 
Scénarios de mobilité couverts par Enterprise Mobility + Security
Scénarios de mobilité couverts par Enterprise Mobility + SecurityScénarios de mobilité couverts par Enterprise Mobility + Security
Scénarios de mobilité couverts par Enterprise Mobility + Security
 
SharePoint Framework : le développement SharePoint nouvelle génération
SharePoint Framework : le développement SharePoint nouvelle générationSharePoint Framework : le développement SharePoint nouvelle génération
SharePoint Framework : le développement SharePoint nouvelle génération
 
Stockage Cloud : il y en aura pour tout le monde
Stockage Cloud : il y en aura pour tout le mondeStockage Cloud : il y en aura pour tout le monde
Stockage Cloud : il y en aura pour tout le monde
 
Bien appréhender le concept de Windows As a Service
Bien appréhender le concept de Windows As a ServiceBien appréhender le concept de Windows As a Service
Bien appréhender le concept de Windows As a Service
 
Protéger vos données avec le chiffrement dans Azure et Office 365
Protéger vos données avec le chiffrement dans Azure et Office 365Protéger vos données avec le chiffrement dans Azure et Office 365
Protéger vos données avec le chiffrement dans Azure et Office 365
 
Protéger votre patrimoine informationnel dans un monde hybride avec Azure Inf...
Protéger votre patrimoine informationnel dans un monde hybride avec Azure Inf...Protéger votre patrimoine informationnel dans un monde hybride avec Azure Inf...
Protéger votre patrimoine informationnel dans un monde hybride avec Azure Inf...
 
Comprendre la stratégie identité de Microsoft
Comprendre la stratégie identité de MicrosoftComprendre la stratégie identité de Microsoft
Comprendre la stratégie identité de Microsoft
 
Vous avez dit « authentification sans mot de passe » : une illustration avec ...
Vous avez dit « authentification sans mot de passe » : une illustration avec ...Vous avez dit « authentification sans mot de passe » : une illustration avec ...
Vous avez dit « authentification sans mot de passe » : une illustration avec ...
 
Sécurité des données
Sécurité des donnéesSécurité des données
Sécurité des données
 
Déploiement hybride, la téléphonie dans le cloud
Déploiement hybride, la téléphonie dans le cloudDéploiement hybride, la téléphonie dans le cloud
Déploiement hybride, la téléphonie dans le cloud
 
Supervisez la qualité des appels Skype for Business Online à l'aide de Call Q...
Supervisez la qualité des appels Skype for Business Online à l'aide de Call Q...Supervisez la qualité des appels Skype for Business Online à l'aide de Call Q...
Supervisez la qualité des appels Skype for Business Online à l'aide de Call Q...
 
SharePoint 2016 : architecture, déploiement et topologies hybrides
SharePoint 2016 : architecture, déploiement et topologies hybridesSharePoint 2016 : architecture, déploiement et topologies hybrides
SharePoint 2016 : architecture, déploiement et topologies hybrides
 
Gestion de Windows 10 et des applications dans l'entreprise moderne
Gestion de Windows 10 et des applications dans l'entreprise moderneGestion de Windows 10 et des applications dans l'entreprise moderne
Gestion de Windows 10 et des applications dans l'entreprise moderne
 
Office 365 dans votre Système d'Informations
Office 365 dans votre Système d'InformationsOffice 365 dans votre Système d'Informations
Office 365 dans votre Système d'Informations
 

Recently uploaded

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 

Recently uploaded (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 

Le Top 10 des Best Practices pour SQL Server

  • 1. palais des congrès Paris 7, 8 et 9 février 2012
  • 2. SQL Server Best Practices Le top 10…N  07/02/2012 Nadia Ben El Kadi Technology Specialist – SQL Server/BI Microsoft France
  • 3. Agenda Introduction Sizing SQL Server Best Practice Before Installation Best Practice Installation Best Practice Post Installation Database Best Practices Maintenance Best Practices Performance Best Practices Monitoring Best Practices DBA Administration Tasks /DBA ToolBox Consolidation Best Practices
  • 4. Choose the right HW & Server Server choice depends on many factors  Olap / Oltp / BI  Transactions/sec needs  DB size / Cube size  Concurent users  Network bandwidth  HA / Virtu / Conso  Storage type Ask your HW vendor : They have sizers for SQL  Dell : SQL Advisor  HP Sizer for SQL Server  Etc… SQL Server Appliance now available  FastTrack (HP Bull, Emc, IBM, Cisco, Dell) ,  PDW (HP Dell) ,  Business Decision Appliance (HP BI Appliance)  DB Consolidation Appliance (HP) --- based on hyperV/SystemCenter  OLTP Appliance : coming soon
  • 5. IO Best Practices for SQL Server Basics for SQL - Types of IO :  Read vs Write  Sequential vs random For OLTP: write-intensive & Random access  Generally random for both reads & writes against data files.  Log writes are sequential in nature For OLAP : mostly reads operation & sequential access  Reads and writes tend to be sequential in nature
  • 6. Summarized I/O Activity of RAID Levels and Their Recommended Use http://technet.microsoft.com/en-us/library/cc966414.aspx RAID Levels RAID0 RAID1 RAID5 RAID10 Reliability Lowest. Very good. Good. Excellent. Lack of fault tolerance results in data loss. Even better with duplexing. Can tolerate single machine fault. Storage Efficiency 100% 50% >50%, <100% 50% (#drives -1/#drives) Random Read Excellent Fair Excellent. Excellent. Worst of the RAID levels but better than a single drive. Random Write Excellent. Fair. Fair. Very good. Worse than a single drive but better than some RAID levels. Generally better with larger stripe sizes. Sequential Read Excellent. Fair. Very good. Excellent. Comparable to a single drive. Generally, better with smaller stripe sizes Sequential Write Excellent. Good. Fair. Very good. Better than other RAID levels. Cost Lowest. Moderate. Moderate. High. Relatively high cost due to redundant drives; however, no expensive controller required Recommended use Good for non-critical data or stagnantly updated data that gets Good for data that requires high fault tolerance at relatively low Very good for Read only data. Data requiring high performance for both read and write and backed up regularly or any data requiring fast write performance hardware cost (redundancy using parity requires more expensive excellent reliability while trading off storage efficiency and cost. at very low cost. Great for testing. hardware). Best for log files.
  • 7. Installation - SQL Setup Choose the right Edition depending on your needs  Standard  Enterprise  BI Edition (new in SQL2012) Install only features/components you need ! Preferred Install is unattended  Especially for cluster Add node
  • 8. Service Pack Recommended to install For Clusters : Rolling Upgrades supported since SQL2008 «Slipstream» new installations : Since SQL2008 , the slipstream functionality performs a single installs that is quicker when compared to installing the original release and then applying the service pack. Cumulative Updates : CU install only when you address a problem or if there is a security fix
  • 9. SQL Post Setup Configuration 1/2 Traceflag 1117  This Traceflag equally grows all datafiles together  Best Practice for SharePoint and Dynamics AX Configure SQL Server Memory  Set max server memory to leave Memory to OS  1 GB for OS if Ram < 8 GB  2 GB for OS if Ram > 8 GB  4 GB for OS if Ram > 128 GB)  Tune this according to other SQL Server instances/ applications running on the system Advanced options  Set MAXDOP to 1 for OLTP like workload  Best Practice for MS ERP Dynamics AX/ MS CRM/SharePoint …  For OLAP like workload, MAXDOP should be at least on 2 (star join query optimization)
  • 10. Database Design Recommendations Take care to initial size and file growth options.  Monitor growth : Configure Autogrow but try to make sure it’s not used Use instant file initialization for performance optimization Use partitioning for better large database manageability. Transaction log : Isolate log from data at the physical level TEMPDB : as See White paper Best Practice SQL & Antivirus : http://support.microsoft.com/kb/309422/en-us
  • 11. Databases Options Best Practices SET RECOVERY Model : Depend of your DRP  Full for production OLTP app  Bulk-Logged for OLAP app  Simple on your Dev servers Auto Shrink set to OFF Auto Close set to OFF Autogrow set with « Mb » and not « % » Page Verify set to « Checksum »
  • 12. Maintenance : Best Practices Backup Databases / Log Integrity Checks : DBCC CHECKDB Optimization Purge History Tables
  • 13. Performance – Best Practices Most common Performance issues came from  Wrong server configuration (io, config…)  But if you have followed BestPractices, it should be OK   DB DESIGN ISSUES  Missing Indexes or non-optimal index choices  Bad statistics / Fragmentation  QUERIES ISSUES  Queries using functions on Indexed columns (Implicit conversion)  Ex : Select …From …Where Upper (nom) = …  Quering that generate Scan operations  Ex : operator « like ‘%’ » : You should use FTS indexes
  • 14. Monitoring – Best Practices HOW WHAT Monitor Services Use a Monitoring/supervision tool  Instances when possible (exple : SCOM)  HA mecanisms SQL Agent Alert mecanism Monitor Windows Performance Configure Database Mail (SMTP  Memory, Cpu, IO support with SQL Server) to recieve automatic alerts Monitor SQL Performance  Top counters in BOL Standard Reports / DMV Monitor File sizes UCP : CPU usage & Disk Usage Monitor SQL Server Errorlogs PDC : more rich  Filter with Error Severity Automate as many of these day-to-day Verify SQL Server Agent Jobs tasks as possible  To rack failure
  • 15. Basic Tasks for a DBA SQL server components installation SQL Server daily Administration  Manage Production servers  Create /update DBs, Configure HA, Support , etc…  Manage Security access Monitor SQL Instances  Check Supervision results  Try to automate via emails Maintenances Tasks Create / Maintain / test DRP procedures Optimize performances Document changes More & more : BI component administration  SSIS / SSAS / SSRS / MDS /DQS  Sharepoint Integration (Powerpivot) … and probably much more…
  • 16. DBA ToolBOX Best Practice Configuration Tools MAP Toolkit (included now in Steup tools) MBSA : MS Baseline Security BPA : Best Practices Analyzer PBP – Policies management SQL Upgrade Advisor for upgrade Best Practice Troubleshooting/Performance/Tunning Tools DMV SQL Profiler SQL DTA PSSDIAG RML utilities PAL
  • 17. Consolidation – Best Practices Why Consolidate:  Lack of space in the data center Check White papers :  Better utilization of hardware resources, either of BestPractices for SQL server Consolidation existing servers or in conjunction with the http://msdn.microsoft.com/en- acquisition of new, more powerful servers us/library/ee819082(v=sql.100).aspx  Standardization and centralization of Administration & Maintenance BestPractices for SSAS Consolidation  Green-IT http://sqlcat.com/sqlcat/b/technicalnotes/archive/2010/0 Scénarios 2/08/microsoft-sql-server-2008-analysis-services-  Consolidate many DBs in 1 instance : reduce consolidation-best-practices.aspx number of instances  Consolidate different instances on 1 server : reduce number of servers  Virtualisation : consolidate many servers on a Host
  • 18. Conclusion Use SQL Server Books Online
  • 19. MERCI Très bon TECHDAYS 2012 avec SQL Server 2012
  • 20. Pour aller plus loin… Venez nous voir sur le stand SQL Server  Retrouvez les experts Microsoft et MVP  Assistez à des présentations des offres de nos partenaires Inscrivez-vous au « Virtual Launch Event » du 8 mars : http://aka.ms/vlefrance Visitez notre nouveau site : http://www.microsoft.fr/sql Evaluez dès aujourd’hui SQL Server 2012  En téléchargeant la RC0 : http://aka.ms/sql2012  En suivant nos « Virtual Labs » : http://aka.ms/sqllabs

Editor's Notes

  1. http://technet.microsoft.com/en-us/library/cc966414.aspx