A while ago I wrote an article called “How to perform an unattended installation of SQL Server 2005 Express“. With the release of SQL Server 2008 it’s time to write another one about how to do the same but for SQL Server 2008 Express. So, let’s get started …
Unattended installations of SQL Server can be as involved as you want – pretty much every option can be specified in the configuration file. For this example I’m going to perform a relatively basic installation with minimal customisation so you can see the process at work. The installation will specify most of what I think are the critical options you’ll be interested in. Note that for this example I’m using the x86 (32-bit) version with advanced services.
Assumptions:
Once you’ve satisfied those requirements follow the steps below.
Now that you’ve got a nicely extracted copy of the installation files you can carry on. The above steps were necessary for what’s coming up.
So, you can now create your own configuration file using Microsoft’s documentation or you can use the version I’ve included in this article.
Be careful with the Microsoft documentation as there is an error on the page called How to: Install SQL Server 2008 from the Command Prompt. It mentions a parameter called /BROWSERSVRACCOUNT but this should be /BROWSERSVCACCOUNT. If you get this wrong the installation WILL fail.
You can download the configuration file I’ve made below. The changes I’ve made are as follows (you may need to change these to match your settings).
Once you have your answer file all nicely setup and ready to use you’ll need to tell the setup program how to use it.
From a command prompt (or Start > Run if you’re into that) run the following command. Remember to change the file and path names to the ones that match your system.
If you’ve done everything right this will start the installation process and you’ll end up with a SQL Server 2008 instance called SQLExpress running on your system. Easy!
Related posts:
These instructions DO NOT WORK, I have spent 2 hours trying to figure out why this doesn’t work and no luck
What do I do now?
foxjazz – The steps above DO work but I have found a problem with the unattended installation file. If you were using the file I made available for download you are correct, it would not have worked. The change was setting the AGTSVCSTARTUPTYPE value to “Manual” instead of “True”. Don’t forget to also change MYPC\Administrator to the appropriate credentials for your system. Thanks.
hello,Chris.thank you for your instructions.now this script WORK well. but my sql server 2008 express is japanese version. the datebase date is not correctely showing . maybe the code is not right. where i should modify the script? thank you.