SQL Server Scripted Configuration: Part 2
The deployment and configuration of software can be a real nightmare to standardize; each administrator has his own ideas of best practice, even with checklists (or cheat sheets). In this series of articles, Rob Hawthorne discusses the unattended installation of SQL Server, and then drills down to writing your own scripts to install SQL Server, ensuring a standard and consistent deployment every time!
Hands-Off Deployment of SQL Server
In the first article of this series, we took a look at how to record a SQL Server unattended (.iss) file and then launch the installation of SQL Server, specifying the .iss file as the source of information for the installation.
"So what now?" you may ask. Well, now we get into the fun stuff: creating an automated way of installing SQL Server via a script. In the next couple of articles, we will create a couple of scripts, one for the initialization of all of our variables (a wrapper script) and then the script that will generate the .iss file and install SQL Server. In this article, we will look specifically at the second script (that is, the one that installs SQL Server).
NOTE
When I am talking about scripts, I am talking about DOS (or batch file) scripts. Although everything I have written here could easily be ported into Windows Scripting Host (WSH), I prefer batch files. Batch files are very simple (both administrators and developers usually have the skills to maintain them), and generally contain a lot less complexity than WSH scripts.
Figure 1 shows a basic process flow of the way our initial scripts will work.
Figure 1 Showing the process flow for the scripts to silently install SQL Server.
So let's get into it then!