Download - Lean and Mean: SQL Server on Windows Server Core

Transcript
Page 1: Lean and Mean: SQL Server on Windows Server Core

Lean and Mean: SQL Server on Windows Server Core

Argenis FernandezSenior Database MonkeySurveyMonkey

Page 2: Lean and Mean: SQL Server on Windows Server Core

About your Speaker today…

Page 3: Lean and Mean: SQL Server on Windows Server Core

SQL Server is an app.• An application that runs on top of

Windows.• Internet Explorer on a production

server? Really?• Next thing you know you’ll want an

antivirus for your server. Oh, wait…• Remember that the best practice is to

have single-purpose servers on any given topology

Page 4: Lean and Mean: SQL Server on Windows Server Core

Production Server != Grandma’s PC

Page 5: Lean and Mean: SQL Server on Windows Server Core

Does this look better to you?

Page 6: Lean and Mean: SQL Server on Windows Server Core

Why would you want to use Server Core?The obvious:• Smaller footprint on disk: ~84% (incl.

SQL)• Less patches needed: ~45% • Boots faster = less downtime• Reduced surface area = better

security• _Maybe_ better performance• <Insert marketing speak here for

TCO>

Source: Allan Hirt (@SQLHA), DBI313, TechEd 2012

Page 7: Lean and Mean: SQL Server on Windows Server Core

Why would you want to use Server Core?The not so obvious:• It forces you out of your comfort zone

(this is a good thing!)• Think scripting, and automation. E.g.,

Powershell• Setup takes a lot less time (less than

20 minutes on a VM)• You probably won’t consider RDPing

into the server

Page 8: Lean and Mean: SQL Server on Windows Server Core

It’s now the default installation method

Page 9: Lean and Mean: SQL Server on Windows Server Core

Not ready to jump? Consider MinShell• A lot of benefits of Server Core• Can still run GUI administration tools• No desktop-like UI• You can actually switch back and

forth between Full GUI, MinShell and Server Core – but once you install SQL, you can’t switch anymore. You’d have to uninstall SQL beforehand.

Page 10: Lean and Mean: SQL Server on Windows Server Core

How was this server originally installed?

Page 11: Lean and Mean: SQL Server on Windows Server Core

SQL Server Support for Server Core• OS: Windows Server 2008 R2 SP1 or

2012• Cannot install 32-bit instances of SQL

(no WOW64)• All non-GUI based features of SQL

supported. • Not supported: SSRS, SSDT, Client

Tools Backward Compatibility, Client Tools SDK, BOL, Distributed Replay Controller, MDS, DQS.

Page 12: Lean and Mean: SQL Server on Windows Server Core

SQL SetupA quick and easy way: run wizard on a GUI server, then save the configuration file.The more advanced ways:• Command line• Configuration file

Page 13: Lean and Mean: SQL Server on Windows Server Core

And now for the best slide of this talk• D:\setup.exe /ACTION="Install"

/ERRORREPORTING=0 /FEATURES=SQLEngine,Replication /UPDATEENABLED=0 /INSTANCENAME=MSSQLSERVER /AGTSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SQLSYSADMINACCOUNTS="SQL\Argenis Fernandez" /Q /SQMREPORTING=0 /BROWSERSVCSTARTUPTYPE="Disabled" /SECURITYMODE="SQL" /SAPWD="SQLF@m1ly2013%" /SQLSVCSTARTUPTYPE="Automatic" /TCPENABLED=1 /IACCEPTSQLSERVERLICENSETERMS

Page 14: Lean and Mean: SQL Server on Windows Server Core

Things you should knowYou should install .NET 3.5 SP1 manually• dism /online /enable-feature /all

/featurename:NetFx3 /source:d:\sources\sxs

You might be okay with disabling Windows Firewall• netsh advfirewall set allprofiles state

off

Page 15: Lean and Mean: SQL Server on Windows Server Core

Clusters and Availability GroupsThings you should know.

Page 16: Lean and Mean: SQL Server on Windows Server Core

Q&A

Page 18: Lean and Mean: SQL Server on Windows Server Core

Coming up…

#SQLBITS

Speaker Title Room

Fusion-io Quantifying the cost of Compression Theatre

Microsoft SQL Azure for the DBA Exhibition B

Pyramid Analytics Introduction to the Pyramid Analytics BI Platform Suite 3

LSI Enabling Flash to Support Mission-Critical Applications Suite 1

SQLSentry Monitoring and Performance Tuning for AlwaysOn Suite 2

SIOS High Performance SANLess Clustering Suite 4