Sometimes, the hurry is prior to every task. And sometimes, the deployment of a secure and ready database is necessary when development will be in few minutes. So, in my experience, I have depicted and tested severel times the following steps to install and deploy a SQL Server 2008 database (this apply also for a SQL Server 2008 R2 version).
All pre-requisites work in Microsoft Windows Server 2003, Microsoft Windows Server 2008, Microsoft Windows Server 2008 R2 environment, but they may be applied to Windows Desktops editions (XP, Vista, Seven (7)). Whatever is the case, the steps must
be executed with the Administrator
1. First, check if the following components are really installed (and tested) at least.
Windows Installer 4.5
.NET FrameWork 3.5
.NET FrameWork 3.5 SP1
Windows PowerShell 1.0
2. Verify if the Administrator's password is complex (with numbers and letters, including upper and lower case letters).
- Create a limited account (never an administrator account) with a complex password. This account will be associated with the Microsoft SQL Server 2008 service.
- Open a command window (Is necessary to remember ? If yes, here goes:
Click Start, Click Execute, Type cmd, and Press ENTER) And write this line:
netsh firewall set portopening protocol = TCP port = 1433 name = SQLPort mode = ENABLE scope = SUBNET profile = CURRENT
- This step apply only for XP, Vista, 7: Stop the firewall service
- Execute the installation of SQL Server product SQLEXPR_x86_ENU.exe (or SQLEXPRADV_x86_ENU.exe)
- When installation process prompted by accounts service, write the machine and limited account name posted in step 3 for all services. Select [Add Current User] to assign the actual user (that is the Administrator account)
- Follow the instructions of wizard.
- This step apply only for XP, Vista, 7: Start the firewall service
- Restart the machine
- After machine restarting, If service packs products are available, execute SQLServer2008SP1-KB968369-x64-ENU.exe to apply Service Pack 1 SQL Server 2008 system requirements
- Open policies management tool and apply the following features:
Deny access to this computer from the network.
Deny logon locally.
Deny logon as a batch job.
Deny logon through Terminal Services.
Log on as a service.
SQL Server 2008 is ready to use !!