dbi servicesWindows Server Core & SQL Server 2012                            Stéphane Haby                            Cons...
dbi servicesWindows Server Core & SQL Server 2012                   Agenda                   i.       Introduction        ...
IntroductionWhat is Windows Server Core? 1/23   www.dbi-services.com           26.04.2012 © dbi services
IntroductionWhat is Windows Server Core? 2/2 Not a Windows Server Edition Installation & Configuration option without GU...
IntroductionServer roles supported     10 roles     Failover Clustering5    www.dbi-services.com   26.04.2012 © dbi servi...
dbi servicesWindows Server Core & SQL Server 2012                   Agenda                   i.       Introduction        ...
Why Windows Server Core ?Benefits Ensure the server stability Less down time Smaller attack surface – higher security ...
Why Windows Server Core ?Reduce OS patches If Server Core had existed     Windows 2000 is ~60% reduction     Windows Se...
dbi servicesWindows Server Core & SQL Server 2012                   Agenda                   i.       Introduction        ...
Configuration & Management  Basic Configuration All command are “case sensitive” Server Core Installation overview   htt...
Configuration & ManagementLicensingcscript C:windowssystem32slmgr.vbs –dlicscript C:windowssystem32slmgr.vbs –ipk XXXXX-XX...
Configuration & Management  Firewall Configuration Internet Control Message Protocol (ICMP) Settings        Windows 2008...
Configuration & Management  Activate features No Server Manager Interface Use Disk Image Service Management (DISM)      ...
Configuration & Management  Usefull Commands Read the 10 last lines from the system event logwevtutil qe system /f:text /...
Configuration & Management  GUI Command prompt%WINDIR%System32cmd.exe Microsoft Support Diagnostic Tool%WINDIR%System32M...
Configuration & Management  Core configurator Codeplex download: http://coreconfig.codeplex.com/  16    www.dbi-services....
Configuration & Management  Checklist Setup Windows Server Core: Installation Option Activate Windows Server Core licens...
dbi servicesWindows Server Core & SQL Server 2012                   Agenda                   i.       Introduction        ...
SQL Server Installation  Requirement: .Net 4 Core Not include in Windows Server Core and not in SQL Server 2012 Specific...
SQL Server InstallationFeatures All Edition     (including Express)    Engine                                   Reporti...
SQL Server InstallationSQL Server Setup Command-line install only      No « Wizard »Setup.exe /QS /ACTION=Install /FEATU...
dbi servicesWindows Server Core & SQL Server 2012                   Agenda                   i.       Introduction        ...
SQL Server Configuration  Configure Firewall Port de communication SQL Server        Windows 2008       netsh firewall s...
SQL Server Configuration  Configure SQL Server Instance Apply best practices:http://www.slideshare.net/dbiservices/d-dbif...
SQL Server Configuration  Useful Commands Enable and Start SQL Browsersc config SQLBROWSER start=autonet start SQLBROWSER...
SQL Server Configuration  Checklist Install requirements like .Net 4 Core Install SQL Server in command-line Configure ...
dbi servicesWindows Server Core & SQL Server 2012                   Agenda                   i.       Introduction        ...
Conclusiondbi services recommend Windows Core for SQL Server      Reduce Downtime      Attack surface      OS footprin...
Conclusion Futur management : DMK for SLQ 2012  Adapt Database Management Kit features:       Using WMI       Using Pow...
dbi servicesAny Questions? Please Do Ask!                            Stéphane Haby                            Consultant  ...
Upcoming SlideShare
Loading in …5
×

Windows Server Core : environnement pour SQL Server 2012 - Stéphane Haby - dbi services

1,314 views

Published on

Windows Server 2008 dispose désormais d'un nouveau mode d'installation : Windows Server Core permet d'améliorer la sécurité et de diminuer la charge administrative part le nombre limité de composants installés. Pourquoi privilégier un tel environnement avec SQL Server 2012, quels bénéfices peut-on en tirer et quelles limitations en découlent ? Dans cette session, nous apporterons des réponses à ces questions. Vous découvrirez également le fonctionnement de SQL Server 2012 sur Windows Server Core en démonstration "live".

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,314
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
17
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Windows Server Core : environnement pour SQL Server 2012 - Stéphane Haby - dbi services

  1. 1. dbi servicesWindows Server Core & SQL Server 2012 Stéphane Haby Consultant Mobile +41 79 103 89 60 stephane.haby@dbi-services.com www.dbi-services.com1 www.dbi-services.com 26.04.2012 © dbi services
  2. 2. dbi servicesWindows Server Core & SQL Server 2012 Agenda i. Introduction ii. Why Windows Server Core ? iii. Configuration & Management iv. SQL Server Installation v. SQL Server Configuration vi. Conclusion2 www.dbi-services.com 26.04.2012 © dbi services
  3. 3. IntroductionWhat is Windows Server Core? 1/23 www.dbi-services.com 26.04.2012 © dbi services
  4. 4. IntroductionWhat is Windows Server Core? 2/2 Not a Windows Server Edition Installation & Configuration option without GUI4 www.dbi-services.com 26.04.2012 © dbi services
  5. 5. IntroductionServer roles supported  10 roles Failover Clustering5 www.dbi-services.com 26.04.2012 © dbi services
  6. 6. dbi servicesWindows Server Core & SQL Server 2012 Agenda i. Introduction ii. Why Windows Server Core ? iii. Configuration & Management iv. SQL Server Installation v. SQL Server Configuration vi. Conclusion6 www.dbi-services.com 26.04.2012 © dbi services
  7. 7. Why Windows Server Core ?Benefits Ensure the server stability Less down time Smaller attack surface – higher security Reduce servicing and management requirements Reduce Hardware constraints : Disk / Memory The perfect platform for databases and naturally SQL Server7 www.dbi-services.com 26.04.2012 © dbi services
  8. 8. Why Windows Server Core ?Reduce OS patches If Server Core had existed  Windows 2000 is ~60% reduction  Windows Server 2003 is ~40% reduction Windows Server 2008:  ~35% reduction if accepting all patches  ~59% reduction if applying only necessary patches  ~59% elimination of reboots8 www.dbi-services.com 26.04.2012 © dbi services
  9. 9. dbi servicesWindows Server Core & SQL Server 2012 Agenda i. Introduction ii. Why Windows Server Core ? iii. Configuration & Management iv. SQL Server Installation v. SQL Server Configuration vi. Conclusion9 www.dbi-services.com 26.04.2012 © dbi services
  10. 10. Configuration & Management Basic Configuration All command are “case sensitive” Server Core Installation overview http://technet.microsoft.com/en-us/library/cc753802(WS.10).aspx Basic configuration: Commande sconfig  Computer name  Domain  Windows update  Network Settings 10 www.dbi-services.com 26.04.2012 © dbi services
  11. 11. Configuration & ManagementLicensingcscript C:windowssystem32slmgr.vbs –dlicscript C:windowssystem32slmgr.vbs –ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXXcscript C:windowssystem32slmgr.vbs -ato11 www.dbi-services.com 26.04.2012 © dbi services
  12. 12. Configuration & Management Firewall Configuration Internet Control Message Protocol (ICMP) Settings  Windows 2008 netsh firewall set icmpsetting 8 netsh firewall set icmpsetting type=ALL mode=enable  Windows 2008 R2 netsh advfirewall firewall add rule name=”ICMP Allow incoming V4 echo request” protocol=icmpv4:8,any dir=in action=allow netsh advfirewall firewall add rule name=”All ICMP V4” protocol=icmpv4:any,any dir=in action=allow 12 www.dbi-services.com 26.04.2012 © dbi services
  13. 13. Configuration & Management Activate features No Server Manager Interface Use Disk Image Service Management (DISM) DISM /online /enable-feature /featurename:NetFx2- ServerCore /featurename:ServerCore-WOW64 /featurename:NetFx3-ServerCore-WOW64 /featurename:NetFx2- ServerCore-WOW64 /featurename:NetFx3-ServerCore Failover Clustering activation DISM /online /enable-feature /featurename:FailoverCluster-Core PowerShell activation DISM /online /enable-feature /featurename:MicrosoftWindowsPowerShell-WOW64 13 www.dbi-services.com 26.04.2012 © dbi services
  14. 14. Configuration & Management Usefull Commands Read the 10 last lines from the system event logwevtutil qe system /f:text /c:10 /rd:true Regional option, date & hourscontrol intl.cplcontrol timedate.cpl List all installed hotfixwmic qfe list List all driverspnputil -e Magic Commandcscript c:WindowsSystem32SCregEdit.wsf /CLI|more 14 www.dbi-services.com 26.04.2012 © dbi services
  15. 15. Configuration & Management GUI Command prompt%WINDIR%System32cmd.exe Microsoft Support Diagnostic Tool%WINDIR%System32Msdt.exe Notepad%WINDIR%System32Notepad.exe System Information%WINDIR%System32Msinfo32.exe Task Manager%WINDIR%System32Taskmgr.exe Registry Editor%WINDIR%System32Regedt32.exe 15 www.dbi-services.com 26.04.2012 © dbi services
  16. 16. Configuration & Management Core configurator Codeplex download: http://coreconfig.codeplex.com/ 16 www.dbi-services.com 26.04.2012 © dbi services
  17. 17. Configuration & Management Checklist Setup Windows Server Core: Installation Option Activate Windows Server Core license Integrate in domain Configure Firewall Install features:  .NET  Failover Clustering  PowerShell Update patches 17 www.dbi-services.com 26.04.2012 © dbi services
  18. 18. dbi servicesWindows Server Core & SQL Server 2012 Agenda i. Introduction ii. Why Windows Server Core ? iii. Configuration & Management iv. SQL Server Installation v. SQL Server Configuration vi. Conclusion18 www.dbi-services.com 26.04.2012 © dbi services
  19. 19. SQL Server Installation Requirement: .Net 4 Core Not include in Windows Server Core and not in SQL Server 2012 Specific package for Core Requirement for SQL Server 2012 .NET 4 Core download : http://www.microsoft.com/download/en/details.aspx?id=22833 19 www.dbi-services.com 26.04.2012 © dbi services
  20. 20. SQL Server InstallationFeatures All Edition (including Express) Engine  Reporting Services (SSRS) SQLCMD  Most SDKs Analysis Service (SSAS)  Master Data Service (MDS) Integration Service (SSIS)  Data Quality Service (DQS) Connectivity SDK  Books Online Sync Fx2 Management Tools on remote20 www.dbi-services.com 26.04.2012 © dbi services
  21. 21. SQL Server InstallationSQL Server Setup Command-line install only  No « Wizard »Setup.exe /QS /ACTION=Install /FEATURES=SQLENGINE,FULLTEXT/INSTANCENAME=MSSQLCORE /IAcceptSQLServerLicenseTerms/SQLSVCACCOUNT=MSTESTsqlservices /SQLSVCPASSWORD=xxxxx/SQLSYSADMINACCOUNTS=MSTESTAdministrator /AGTSVCACCOUNT=MSTESTsqlservices /AGTSVCPASSWORD=xxxx /TCPENABLED=1  With configuration fileSetup.exe /QS /Configurationfile=W:ConfigurationFile.ini Setup automatically installs/enables pre-requisites Rules to detect unsupported features/scenarios21 www.dbi-services.com 26.04.2012 © dbi services
  22. 22. dbi servicesWindows Server Core & SQL Server 2012 Agenda i. Introduction ii. Why Windows Server Core ? iii. Configuration & Management iv. SQL Server Installation v. SQL Server Configuration vi. Conclusion22 www.dbi-services.com 26.04.2012 © dbi services
  23. 23. SQL Server Configuration Configure Firewall Port de communication SQL Server  Windows 2008 netsh firewall set portopening TCP 1433 "SQLServer"  Windows 2008 R2 netsh advfirewall firewall add rule name=”SQL Server default port 1433” dir=in action=allow protocol=TCP localport=1433 23 www.dbi-services.com 26.04.2012 © dbi services
  24. 24. SQL Server Configuration Configure SQL Server Instance Apply best practices:http://www.slideshare.net/dbiservices/d-dbif20110830005sql-serverbestpractice Use SQL Server on remote with SSMS or directly SQLCMD:sqlcmd -S <server><instance> -i W:sqlinstconfig.sqlsqlcmd -S <server><instance> -i W:tempdbconfig.sql 24 www.dbi-services.com 26.04.2012 © dbi services
  25. 25. SQL Server Configuration Useful Commands Enable and Start SQL Browsersc config SQLBROWSER start=autonet start SQLBROWSER New DMVs :sqlcmd -q "SELECT * FROM sys.dm_os_windows_info“sqlcmd -q "SELECT * FROM sys.dm_server_services“ Identify all processes that are blocked for more than 10 secondssqlcmd -q "SELECT * FROM sys.sysprocesses WHEREblocked<>0 AND waittime > 10000” Check if there are any deadlockssqlcmd -q "SELECT * FROM sys.dm_os_performance_countersWHERE counter_name = Number of Deadlocks/sec‘ ANDcntr_value <> 0” 25 www.dbi-services.com 26.04.2012 © dbi services
  26. 26. SQL Server Configuration Checklist Install requirements like .Net 4 Core Install SQL Server in command-line Configure the Firewall for SQL Server ports Apply Best Practice to configure Instance Load or install the databases 26 www.dbi-services.com 26.04.2012 © dbi services
  27. 27. dbi servicesWindows Server Core & SQL Server 2012 Agenda i. Introduction ii. Why Windows Server Core ? iii. Configuration & Management iv. SQL Server Installation v. SQL Server Configuration vi. Conclusion27 www.dbi-services.com 26.04.2012 © dbi services
  28. 28. Conclusiondbi services recommend Windows Core for SQL Server  Reduce Downtime  Attack surface  OS footprint  Critical DB Workload  Without BI  Reduce update Consult Windows Core Blog:  http://blogs.technet.com/b/server_core/ The perfect platform for SQL Server 201228 www.dbi-services.com 26.04.2012 © dbi services
  29. 29. Conclusion Futur management : DMK for SLQ 2012  Adapt Database Management Kit features:  Using WMI  Using PowerShell  Using SQLCMD  Using GUI like Notepad  Commands sample:sq => sqlcmd -S <ComputerName><InstanceName>via => notepad.exe <SQL Server Log File Path>ERRORLOG  DMK link : http://www.dbi-services.com/index.php/products/database- management-kit 29 www.dbi-services.com 26.04.2012 © dbi services
  30. 30. dbi servicesAny Questions? Please Do Ask! Stéphane Haby Consultant Mobile +41 79 103 89 60 stephane.haby@dbi-services.com www.dbi-services.com „We look forward to working with you!“30 www.dbi-services.com 26.04.2012 © dbi services

×