SlideShare a Scribd company logo
Sql saturday oc 2019
The Fast and Easy Methods to Automate your
SQL Server builds
Sitotpal Sarkar Email: stotpal@sbcglobal.net
Pronunciation: (Sit-Oat-Paul Sar-Car)
Senior SQL Database Administrator
Health Information Technology
Keck Medicine
University of Southern California
Microsoft SQL Server Download Center
https://www.microsoft.com/en-us/sql-server/sql-server-downloads
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
• Fusion Active Template Library (ATL): Checks if a computer restart is required because of
broken fusion ATL. A pending restart can cause SQL Server Setup to fail.
• Consistency Validation for SQL server Registry keys in the Install Rule:
Basically checks if User Account doesn't have required permission to edit the registry keys or it
does. Issue will occur when the installer unable to update the registry entries due to lack of
permission.
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Sql saturday oc 2019
Why SQL command line
install?
• No Clicks Next, Next and Nnneexxt
• Consistent
• Skills with command line is helpful in
working in the Microsoft Core Box where
there is limited or no GUI at all or any other
GUI free environment.
Our SQL Server Install command line!
--MSA Account SQL Server 2017
C:windowssystem32>E:Setup.exe /q /ACTION=Install
/UpdateEnabled=True /UpdateSource=F:SQL2017Updates
/FEATURES=SQLEngine /INSTANCENAME=MSSQLSERVER
/INSTALLSQLDATADIR="D:Program FilesMicrosoft SQL Server"
/SQLTEMPDBDIR="T:TEMPDBDATA"
/SQLTEMPDBLOGDIR="T:TEMPDBLOGS" /SQLTEMPDBFILECOUNT=4
/SQLTEMPDBLOGFILESIZE=1024 /SQLTEMPDBLOGFILEGROWTH=1024
/SQLSVCINSTANTFILEINIT="TRUE" /TCPENABLED=1
/SQLTEMPDBFILESIZE=1024 /SQLTEMPDBFILEGROWTH=0
/SQLUSERDBDIR="D:Program FilesMicrosoft SQL
ServerMSSQL14.MSSQLSERVERMSSQLDATA"
/SQLUSERDBLOGDIR="L:Program FilesMicrosoft SQL
ServerMSSQL14.MSSQLSERVERMSSQLLOGS"
/SQLSVCACCOUNT="CONTOSOsql_msa_srv123$"
/SQLSYSADMINACCOUNTS="CONTOSODBA"
/AGTSVCACCOUNT="CONTOSOSQL_msa_agt123$"
/AGTSVCSTARTUPTYPE="Automatic"
/IACCEPTSQLSERVERLICENSETERMS /INDICATEPROGRESS
Parameter/Switches Defined below:
command Prompt. C:windowssystem32>
Install File location: E:Setup.exe
Parameters/Switches:
/q (Specifies that Setup runs in a quiet mode without any user interface. This is used for unattended
installations.)
/ACTION=Install (Required to indicate the installation workflow. Which in this case Install)
/UpdateEnabled=True (Specify whether SQL Server setup should discover and include product
updates. The valid values are True and False or 1 and 0. By default, SQL Server setup will include
updates that are found.)
/UpdateSource=F:SQL2017Updates (Specify the location where SQL Server setup will obtain product
updates.)
/FEATURES=SQLEngine (Specifies components to uninstall.)
/INSTANCENAME=MSSQLSERVER (Specifies a SQL Server instance name.)
/INSTALLSQLDATADIR="D:Program FilesMicrosoft SQL Server" (Specifies the data directory for SQL
Server data files.)
/SQLTEMPDBDIR="T:TEMPDBDATA" (Specifies the directories for tempdb data files. )
/SQLTEMPDBLOGDIR="T:TEMPDBLOGS" (Specifies the directory for tempdb log file.)
/SQLTEMPDBFILECOUNT=4 (Specifies the number of tempdb data files to be added by setup. This
value can be increased up to the number of cores.)
/SQLTEMPDBLOGFILESIZE=1024 (Specifies the initial size of the tempdb log file in MB. Setup allows the size
up to 1024.)
/SQLTEMPDBLOGFILEGROWTH=1024 (Introduced in SQL Server 2016 (13.x). Specifies the initial size of each
tempdb log file.)
/SQLSVCINSTANTFILEINIT="TRUE" (Enables instant file initialization for SQL Server service account. For security
and performance considerations,)
/TCPENABLED=1 (Specifies the state of the TCP protocol for the SQL Server service. Supported values:
0=disable the TCP protocol, 1=enable the TCP protocol)
/SQLTEMPDBFILESIZE=1024 (Introduced in SQL Server 2016 (13.x). Specifies the initial size of each tempdb data
file.)
/SQLTEMPDBFILEGROWTH=0 (Specifies the file growth increment of each tempdb data file in MB. A value of 0
indicates that automatic growth is off and no additional space is allowed. Setup allows the size up to 1024.
Default value: 64 Allowed range: Min = 0, Max = 1024)
/SQLUSERDBDIR="D:Program FilesMicrosoft SQL ServerMSSQL14.MSSQLSERVERMSSQLDATA" (Specifies
the directory for the data files for user databases.)
/SQLUSERDBLOGDIR="L:Program FilesMicrosoft SQL ServerMSSQL14.MSSQLSERVERMSSQLLOGS"
(Specifies the directory for the log files for user databases.)
/SQLSVCACCOUNT="CONTOSOsql_msa_srv123$" (Specifies the startup account for the SQL Server service.)
/SQLSYSADMINACCOUNTS="CONTOSODBA" (Use this parameter to provision logins to be members of the
sysadmin role.)
/AGTSVCACCOUNT="CONTOSOsql_msa_agt123$" (Specifies the account for the SQL Server Agent service.)
/AGTSVCSTARTUPTYPE="Automatic" (Specifies the startup mode for the SQL Server Agent service.)
/IACCEPTSQLSERVERLICENSETERMS (Required to acknowledge acceptance of the license terms.)
/INDICATEPROGRESS (Specifies that the verbose Setup log file is piped to the console.)
Install SSMS through Command Line:
C:windowssystem32>C:SSMSSSMS-Setup-ENU-18-Preview7.exe /install /quiet /norestart /log
C:SSMS18LOGSssmslog.txt
Microsoft SQL Server 2017
Commandline Install
Demo
Now that SQL server 2017, Its updates and
SQL Server Management Studio has been
installed successfully. We should implement
the Database Backup jobs, Database index
optimization, Database integrity checks etc.
through SQL server Agent jobs. We use
Ola Hallengren script. Follow this link to go
to the website where this Maintenance
Solution is available.
https://ola.hallengren.com/
Sql saturday oc 2019
This is the best starting point for building your own
maintenance plan is the comprehensive and free and
Open source script from Ola Hallengren. This is the
script we use at Keck Medicine of USC, of course we
tailor the script to our needs by modifying it a little and
adding a lot of additional stuff. I will use his Script
(Customized by USC) here to set up all the Database
maintenance procedures.
list of additional stuff we add to the Ola Hallengran Script.
Include the server to our Central Management Server
Resize System Databases
Resize TempDB
Set Up Sql Server Database Mail
Set up SQL Server Agent Service Restart Alert
Create Job Failure Report
Script The SQL server Logins and Database users
Support Our Sponsors
Local User Groups
Orange County Data Professionals
2nd Thursday of each month
6:30—8:30 PM
Irvine
BigPASS.pass.org
Malibu SQL
3rd Wednesday of each month
6:30—9:00 PM
sqlMalibu.pass.org
Los Angeles SQL
3rd Thursday of each odd month
7:00—8:30 PM
USC Campus
Sql.la
San Diego User Groups
1st & 3rd Thursday
6:00—8:30 PM
www.meetup.com/sdsqlug
Los Angeles—Korean
Every other Tuesday
8:00—9:00 PM
El Segundo
sqlAngeles.pass.org
Orange County Power BI
3rd Thursday of the month
7:00—8:30 PM
Irvine
Meetup.com
PASS Summit
Annual International Conference
Nov 5 - 8 | Seattle, WA
2 Days of Pre-Cons
200+ sessions over 3 days
Over 5,000 SQL Professionals
Evening Networking Activities

More Related Content

PDF
Installing oracle timesten database On Linux
PPTX
Weblogic12 c installation guide
PDF
Upgrade Oracle Database to 12c
PDF
Oracle Enterprise manager 13c Installation
PDF
Refresh development from productions
PPTX
Weblogic 101 for dba
DOCX
Weblogic 12c Graphical Mode installation steps in Windows
PDF
12c on RHEL7
Installing oracle timesten database On Linux
Weblogic12 c installation guide
Upgrade Oracle Database to 12c
Oracle Enterprise manager 13c Installation
Refresh development from productions
Weblogic 101 for dba
Weblogic 12c Graphical Mode installation steps in Windows
12c on RHEL7

What's hot (20)

PDF
Database Automation with MySQL Triggers and Event Schedulers
DOCX
Upgrade EBS DB from 11g to 12c.
PDF
oracle-rest-data-service-instal-config
PDF
Oracle to MySQL DatabaseLink
PDF
Performance Tuning Oracle Weblogic Server 12c
PDF
Ebs clone r12.2.4
PDF
Centralized logging for (java) applications with the elastic stack made easy
DOCX
Horizontal clustering configuration steps
PDF
configuring+oracle+rds+with+glasfish+server
PDF
Oracle olap-installation
PDF
Install oracle siebel on windows 2008 r2
PDF
Enable oracle database vault
PDF
Are You Ready for 12c? Data Migration and Upgrade Best Practices
PDF
Install oracle grid infrastructure on linux 6.6
PDF
Oracle WebLogic Server 11g for IT OPS
PDF
PowerUpSQL - 2018 Blackhat USA Arsenal Presentation
PDF
Oracle business intelligence enterprise edition 11g
PDF
SafePeak - How to configure SQL Server agent in a safepeak deployment
PPTX
Sqlpass The Magic Of Replication
DOC
weblogic perfomence tuning
Database Automation with MySQL Triggers and Event Schedulers
Upgrade EBS DB from 11g to 12c.
oracle-rest-data-service-instal-config
Oracle to MySQL DatabaseLink
Performance Tuning Oracle Weblogic Server 12c
Ebs clone r12.2.4
Centralized logging for (java) applications with the elastic stack made easy
Horizontal clustering configuration steps
configuring+oracle+rds+with+glasfish+server
Oracle olap-installation
Install oracle siebel on windows 2008 r2
Enable oracle database vault
Are You Ready for 12c? Data Migration and Upgrade Best Practices
Install oracle grid infrastructure on linux 6.6
Oracle WebLogic Server 11g for IT OPS
PowerUpSQL - 2018 Blackhat USA Arsenal Presentation
Oracle business intelligence enterprise edition 11g
SafePeak - How to configure SQL Server agent in a safepeak deployment
Sqlpass The Magic Of Replication
weblogic perfomence tuning
Ad

Similar to Sql saturday oc 2019 (20)

PPTX
SQL server part 1
PPTX
Building perfect sql servers, every time -oops
DOCX
Sqlserver 2012 installation step by step
PDF
SQL Server 2000 Installation Rollout Backout Plan
PDF
Enter the Dragon - SQL 2014 on Server Core PASS Summit 2014 Edition
PPTX
Sql Automation 20090610
PPSX
Installing ms sql server 2012 express edition
PDF
Configuring sql server - SQL Saturday, Athens Oct 2014
PPTX
Microsoft sql server database administration
PDF
SQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginners
PDF
SQL Server database engine 2017 enhancements
PDF
Enter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto Edition
PDF
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
PDF
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
PDF
How to-install-sql-server-2008
PDF
New Server in an Hour #sqlsat121
PDF
What's new in SQL Server 2017
PDF
All database solution-Installing Micosoft SQL Server 2016
PDF
SQL Server Best Practices - Install SQL Server like a boss (RELOADED)
PDF
ITS Forefront Management Server Infrastructure Build
SQL server part 1
Building perfect sql servers, every time -oops
Sqlserver 2012 installation step by step
SQL Server 2000 Installation Rollout Backout Plan
Enter the Dragon - SQL 2014 on Server Core PASS Summit 2014 Edition
Sql Automation 20090610
Installing ms sql server 2012 express edition
Configuring sql server - SQL Saturday, Athens Oct 2014
Microsoft sql server database administration
SQLSaturday#290_Kiev_AdHocMaintenancePlansForBeginners
SQL Server database engine 2017 enhancements
Enter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto Edition
KoprowskiT_SQLSaturday409_MaintenancePlansForBeginners
KoprowskiT_SQLSat409_MaintenancePlansForBeginners
How to-install-sql-server-2008
New Server in an Hour #sqlsat121
What's new in SQL Server 2017
All database solution-Installing Micosoft SQL Server 2016
SQL Server Best Practices - Install SQL Server like a boss (RELOADED)
ITS Forefront Management Server Infrastructure Build
Ad

Recently uploaded (20)

PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Hybrid model detection and classification of lung cancer
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Getting Started with Data Integration: FME Form 101
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
Modernising the Digital Integration Hub
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
observCloud-Native Containerability and monitoring.pptx
PPTX
The various Industrial Revolutions .pptx
PPT
What is a Computer? Input Devices /output devices
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
A novel scalable deep ensemble learning framework for big data classification...
Module 1.ppt Iot fundamentals and Architecture
Hybrid model detection and classification of lung cancer
Hindi spoken digit analysis for native and non-native speakers
A comparative study of natural language inference in Swahili using monolingua...
NewMind AI Weekly Chronicles – August ’25 Week III
TLE Review Electricity (Electricity).pptx
Getting Started with Data Integration: FME Form 101
Getting started with AI Agents and Multi-Agent Systems
Chapter 5: Probability Theory and Statistics
Modernising the Digital Integration Hub
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Group 1 Presentation -Planning and Decision Making .pptx
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Programs and apps: productivity, graphics, security and other tools
Zenith AI: Advanced Artificial Intelligence
observCloud-Native Containerability and monitoring.pptx
The various Industrial Revolutions .pptx
What is a Computer? Input Devices /output devices
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
A novel scalable deep ensemble learning framework for big data classification...

Sql saturday oc 2019

  • 2. The Fast and Easy Methods to Automate your SQL Server builds Sitotpal Sarkar Email: stotpal@sbcglobal.net Pronunciation: (Sit-Oat-Paul Sar-Car) Senior SQL Database Administrator Health Information Technology Keck Medicine University of Southern California
  • 3. Microsoft SQL Server Download Center https://www.microsoft.com/en-us/sql-server/sql-server-downloads
  • 18. • Fusion Active Template Library (ATL): Checks if a computer restart is required because of broken fusion ATL. A pending restart can cause SQL Server Setup to fail. • Consistency Validation for SQL server Registry keys in the Install Rule: Basically checks if User Account doesn't have required permission to edit the registry keys or it does. Issue will occur when the installer unable to update the registry entries due to lack of permission.
  • 37. Why SQL command line install? • No Clicks Next, Next and Nnneexxt • Consistent • Skills with command line is helpful in working in the Microsoft Core Box where there is limited or no GUI at all or any other GUI free environment.
  • 38. Our SQL Server Install command line! --MSA Account SQL Server 2017 C:windowssystem32>E:Setup.exe /q /ACTION=Install /UpdateEnabled=True /UpdateSource=F:SQL2017Updates /FEATURES=SQLEngine /INSTANCENAME=MSSQLSERVER /INSTALLSQLDATADIR="D:Program FilesMicrosoft SQL Server" /SQLTEMPDBDIR="T:TEMPDBDATA" /SQLTEMPDBLOGDIR="T:TEMPDBLOGS" /SQLTEMPDBFILECOUNT=4 /SQLTEMPDBLOGFILESIZE=1024 /SQLTEMPDBLOGFILEGROWTH=1024 /SQLSVCINSTANTFILEINIT="TRUE" /TCPENABLED=1 /SQLTEMPDBFILESIZE=1024 /SQLTEMPDBFILEGROWTH=0 /SQLUSERDBDIR="D:Program FilesMicrosoft SQL ServerMSSQL14.MSSQLSERVERMSSQLDATA" /SQLUSERDBLOGDIR="L:Program FilesMicrosoft SQL ServerMSSQL14.MSSQLSERVERMSSQLLOGS" /SQLSVCACCOUNT="CONTOSOsql_msa_srv123$" /SQLSYSADMINACCOUNTS="CONTOSODBA" /AGTSVCACCOUNT="CONTOSOSQL_msa_agt123$" /AGTSVCSTARTUPTYPE="Automatic" /IACCEPTSQLSERVERLICENSETERMS /INDICATEPROGRESS
  • 39. Parameter/Switches Defined below: command Prompt. C:windowssystem32> Install File location: E:Setup.exe Parameters/Switches: /q (Specifies that Setup runs in a quiet mode without any user interface. This is used for unattended installations.) /ACTION=Install (Required to indicate the installation workflow. Which in this case Install) /UpdateEnabled=True (Specify whether SQL Server setup should discover and include product updates. The valid values are True and False or 1 and 0. By default, SQL Server setup will include updates that are found.) /UpdateSource=F:SQL2017Updates (Specify the location where SQL Server setup will obtain product updates.) /FEATURES=SQLEngine (Specifies components to uninstall.) /INSTANCENAME=MSSQLSERVER (Specifies a SQL Server instance name.) /INSTALLSQLDATADIR="D:Program FilesMicrosoft SQL Server" (Specifies the data directory for SQL Server data files.) /SQLTEMPDBDIR="T:TEMPDBDATA" (Specifies the directories for tempdb data files. ) /SQLTEMPDBLOGDIR="T:TEMPDBLOGS" (Specifies the directory for tempdb log file.) /SQLTEMPDBFILECOUNT=4 (Specifies the number of tempdb data files to be added by setup. This value can be increased up to the number of cores.)
  • 40. /SQLTEMPDBLOGFILESIZE=1024 (Specifies the initial size of the tempdb log file in MB. Setup allows the size up to 1024.) /SQLTEMPDBLOGFILEGROWTH=1024 (Introduced in SQL Server 2016 (13.x). Specifies the initial size of each tempdb log file.) /SQLSVCINSTANTFILEINIT="TRUE" (Enables instant file initialization for SQL Server service account. For security and performance considerations,) /TCPENABLED=1 (Specifies the state of the TCP protocol for the SQL Server service. Supported values: 0=disable the TCP protocol, 1=enable the TCP protocol) /SQLTEMPDBFILESIZE=1024 (Introduced in SQL Server 2016 (13.x). Specifies the initial size of each tempdb data file.) /SQLTEMPDBFILEGROWTH=0 (Specifies the file growth increment of each tempdb data file in MB. A value of 0 indicates that automatic growth is off and no additional space is allowed. Setup allows the size up to 1024. Default value: 64 Allowed range: Min = 0, Max = 1024) /SQLUSERDBDIR="D:Program FilesMicrosoft SQL ServerMSSQL14.MSSQLSERVERMSSQLDATA" (Specifies the directory for the data files for user databases.) /SQLUSERDBLOGDIR="L:Program FilesMicrosoft SQL ServerMSSQL14.MSSQLSERVERMSSQLLOGS" (Specifies the directory for the log files for user databases.) /SQLSVCACCOUNT="CONTOSOsql_msa_srv123$" (Specifies the startup account for the SQL Server service.) /SQLSYSADMINACCOUNTS="CONTOSODBA" (Use this parameter to provision logins to be members of the sysadmin role.)
  • 41. /AGTSVCACCOUNT="CONTOSOsql_msa_agt123$" (Specifies the account for the SQL Server Agent service.) /AGTSVCSTARTUPTYPE="Automatic" (Specifies the startup mode for the SQL Server Agent service.) /IACCEPTSQLSERVERLICENSETERMS (Required to acknowledge acceptance of the license terms.) /INDICATEPROGRESS (Specifies that the verbose Setup log file is piped to the console.) Install SSMS through Command Line: C:windowssystem32>C:SSMSSSMS-Setup-ENU-18-Preview7.exe /install /quiet /norestart /log C:SSMS18LOGSssmslog.txt
  • 42. Microsoft SQL Server 2017 Commandline Install Demo
  • 43. Now that SQL server 2017, Its updates and SQL Server Management Studio has been installed successfully. We should implement the Database Backup jobs, Database index optimization, Database integrity checks etc. through SQL server Agent jobs. We use Ola Hallengren script. Follow this link to go to the website where this Maintenance Solution is available. https://ola.hallengren.com/
  • 45. This is the best starting point for building your own maintenance plan is the comprehensive and free and Open source script from Ola Hallengren. This is the script we use at Keck Medicine of USC, of course we tailor the script to our needs by modifying it a little and adding a lot of additional stuff. I will use his Script (Customized by USC) here to set up all the Database maintenance procedures.
  • 46. list of additional stuff we add to the Ola Hallengran Script. Include the server to our Central Management Server Resize System Databases Resize TempDB Set Up Sql Server Database Mail Set up SQL Server Agent Service Restart Alert Create Job Failure Report Script The SQL server Logins and Database users
  • 48. Local User Groups Orange County Data Professionals 2nd Thursday of each month 6:30—8:30 PM Irvine BigPASS.pass.org Malibu SQL 3rd Wednesday of each month 6:30—9:00 PM sqlMalibu.pass.org Los Angeles SQL 3rd Thursday of each odd month 7:00—8:30 PM USC Campus Sql.la San Diego User Groups 1st & 3rd Thursday 6:00—8:30 PM www.meetup.com/sdsqlug Los Angeles—Korean Every other Tuesday 8:00—9:00 PM El Segundo sqlAngeles.pass.org Orange County Power BI 3rd Thursday of the month 7:00—8:30 PM Irvine Meetup.com
  • 49. PASS Summit Annual International Conference Nov 5 - 8 | Seattle, WA 2 Days of Pre-Cons 200+ sessions over 3 days Over 5,000 SQL Professionals Evening Networking Activities