The Fast and Easy Methods to Automate your SQL Server builds

Slides:



Advertisements
Similar presentations
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Advertisements

NODEMANAGER WEBLOGIC SERVER. 1.Creating logical machines 2.Using nodemanager for server startup and shutdown GETTING STARTED.
Installation and Deployment in Microsoft Dynamics CRM 4.0
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Hands-On Microsoft Windows Server 2003 Chapter 2 Installing Windows Server 2003, Standard Edition.
Module 6 Windows 2000 Professional 6.1 Installation 6.2 Administration/User Interface 6.3 User Accounts 6.4 Managing the File System 6.5 Services.
Week 2 - Installation SQL SERVER2000 ENTERPRISE EDITION INSTALLATION.
Module 2: Planning to Install SQL Server. Overview Hardware Installation Considerations SQL Server 2000 Editions Software Installation Considerations.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
9.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Two Deploying Windows Servers.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
8.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 8: Introducing Computer Accounts.
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
Module 10: Configuring Windows XP Professional to Operate in Microsoft Networks.
CIM6400 CTNW (04/05) 1 CIM6400 CTNW Lesson 6 – More on Windows 2000.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Clustering SQL Server Tom Pullen Senior DBA, RM Education
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
Permissions Lesson 13. Skills Matrix Security Modes Maintaining data integrity involves creating users, controlling their access and limiting their ability.
1 Chapter Overview Planning to Install SQL Server 2000 Deciding SQL Server 2000 Setup Configuration Options Running the SQL Server 2000 Setup Program Using.
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
Optimizing Windows Vista Performance Lesson 10. Skills Matrix Technology SkillObjective DomainObjective # Introducing ReadyBoostTroubleshoot performance.
1 Active Directory Administration Tasks And Tools Active Directory Administration Tasks Active Directory Administrative Tools Using Microsoft Management.
SQL SERVER 2008 Installation Guide A Step by Step Guide Prepared by Hassan Tariq.
Upgrade on Windows 7. DownloadSoftware Download Software from link provided in Webliography: e/
Let’s Get It Started Lori Edwards, SQL Sentry. Introduction  Sales Engineer for SQL Sentry since 2/2013  Previously – DBA since 2003  PASS volunteer.
SQL Server Management Strategies
SQL Database Management
Automated Enterprise-wide SQL Server Auditing
Get to know SQL Manager SQL Server administration done right 
Common SQL Server Mistakes and How to Avoid Them
SSIS Project Deployment: The T-SQL Way
Deployment & Management with PSADK, SCCM & EM
Automating SQL Server Management
CONFIGURING HARDWARE DEVICE & START UP PROCESS
Pass Microsoft Exam in First Attempt | Dumps4download.us
Auditing in SQL Server 2008 DBA-364-M
What Is Sharepoint? Mohsen Ashkboos
Database Code Management with VS 2017 and RedGate
Universal SQL Installations Framework (Script review and Demo)
Save Time & Resources: Job Performance Tuning Strategies
5 WAYS TO BYPASS *OR ENSURE* SQL SERVER SECURITY MATT MARTIN
Making PowerShell Useful
It’s About Time : Temporal Table Support in SQL Server 2016/2017
Transforming Your Brain with SQL 2017 on Linux
Stop Wasting Time & Resources: Performance Tune Your Jobs
SSIS Project Deployment: The T-SQL Way
The Mac DBA, using Docker and SQL Operations Studio
Let’s Get Started! Rick Lowe
Microsoft Azure for SQL Server Professionals
Use PowerShell & dbatools to Manage your SQL Server Environment
Governing Your Enterprise with Policy-Based Management
Service Template Creation from the Ground Up
MS-202 Exam Questions Answers Dumps 2019
MS-200 Planning and Configuring a Messaging Platform Pass Your Exam in One Attempt.
SSRS – Thinking Outside the Report
Patrick Partin What just happened? Creating your own real-time dashboard with Grafana, Influx, and Telegraf Congratulations on successfully downloading.
Power BI Security Fundamentals
Brodie Brickey SSIS Basics.
Do-It-Yourself Performance Monitoring
Simplify your daily tasks with DBATools!
Presentation transcript:

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

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.

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:\windows\system32>E:\Setup.exe /q /ACTION=Install /UpdateEnabled=True /UpdateSource=F:\SQL2017\Updates /FEATURES=SQLEngine /INSTANCENAME=MSSQLSERVER /INSTALLSQLDATADIR="D:\Program Files\Microsoft SQL Server" /SQLTEMPDBDIR="T:\TEMPDB\DATA" /SQLTEMPDBLOGDIR="T:\TEMPDB\LOGS" /SQLTEMPDBFILECOUNT=4 /SQLTEMPDBLOGFILESIZE=1024 /SQLTEMPDBLOGFILEGROWTH=1024 /SQLSVCINSTANTFILEINIT="TRUE" /TCPENABLED=1 /SQLTEMPDBFILESIZE=1024 /SQLTEMPDBFILEGROWTH=0 /SQLUSERDBDIR="D:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA" /SQLUSERDBLOGDIR="L:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\LOGS" /SQLSVCACCOUNT="CONTOSO\sql_msa_srv123$" /SQLSYSADMINACCOUNTS="CONTOSO\DBA" /AGTSVCACCOUNT="CONTOSO\SQL_msa_agt123$" /AGTSVCSTARTUPTYPE="Automatic" /IACCEPTSQLSERVERLICENSETERMS /INDICATEPROGRESS

Parameter/Switches Defined below: command Prompt. C:\windows\system32> 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:\SQL2017\Updates (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 Files\Microsoft SQL Server" (Specifies the data directory for SQL Server data files.) /SQLTEMPDBDIR="T:\TEMPDB\DATA" (Specifies the directories for tempdb data files. ) /SQLTEMPDBLOGDIR="T:\TEMPDB\LOGS" (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 Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA" (Specifies the directory for the data files for user databases.) /SQLUSERDBLOGDIR="L:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\LOGS" (Specifies the directory for the log files for user databases.) /SQLSVCACCOUNT="CONTOSO\sql_msa_srv123$" (Specifies the startup account for the SQL Server service.) /SQLSYSADMINACCOUNTS="CONTOSO\DBA" (Use this parameter to provision logins to be members of the sysadmin role.)

/AGTSVCACCOUNT="CONTOSO\sql_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:\windows\system32>C:\SSMS\SSMS-Setup-ENU-18-Preview7.exe /install /quiet /norestart /log C:\SSMS18\LOGS\ssmslog.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/

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 Los Angeles SQL 3rd Thursday of each odd month 7:00—8:30 PM USC Campus Sql.la Orange County Power BI 3rd Thursday of the month 7:00—8:30 PM Irvine Meetup.com Malibu SQL 3rd Wednesday of each month 6:30—9:00 PM sqlMalibu.pass.org 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

PASS Summit Annual International Conference 2 Days of Pre-Cons Nov 5 - 8 | Seattle, WA 2 Days of Pre-Cons 200+ sessions over 3 days Over 5,000 SQL Professionals Evening Networking Activities