3

I have been wracking my brain over upgrading sql server 2005 to sql server 2005 sp4. I have a script for installing new instances of sql servers for all versions and they all work wonderfully. Problem is, sql server 2012 can't upgrade sql 2005 SP3 and below. So, I have to install up to sql 2005 SP4, AND THEN upgrade through sql 2012, which is highly annoying.

I need to do this silently via the command line, but I cannot get it to work at all. Here are some samples I tried:

 "SQLSP4.exe /qb /ACTION=Upgrade /INSTANCENAME="FOOBAR""
 "SQLSP4.exe /quiet /instancename="FOOBAR""

among a couple other variations. I could not find anything online at all. In fact, the one helpful thread ended in saying that Microsoft didn't have any support for this, but I'm not sure about that.

What can be done here? Does anyone have any experience in updating service packs via command line?

asked Mar 6, 2013 at 22:19
1
  • Your syntax is correct. Is there anything in the log files to indicate what the upgrade process is doing? Look at C:\Program Files\Microsoft SQL Server90円\Setup Bootstrap\Log. Also, what is the specific release number of your current installation? i.e. 9.xx.xxxx Commented Jan 2, 2014 at 16:10

2 Answers 2

1

I have used below in past to upgrade all instances running sql 2005 to SP4. Just put this in a .bat file

@echo off
set hour=%time:~0,2%
if "%hour:~0,1%"==" " set hour=0%time:~1,1%
echo Started at %date% %time%
SQLServer2005SP4-KB2463332-x64-ENU.exe /allinstances /quiet
echo Completed at %date% %time%
answered Apr 3, 2014 at 13:59
0

Here's what I've used when updating SQL 2005 to SP4 but I was updating all insances so you might need to adjust if you have multiple instances on a server and only want to update one. \\fileServer\SQL2005\SPs\SQLServer2005SP4-KB2463332-x64-ENU.exe /quiet /allinstances

answered Mar 7, 2013 at 1:08
1
  • I tried this line and it worked to a point. However, it will come to the "following components are being configured" and it doesn't list any instances. I do have an instance running from a previous sql 2005 version, but it just isn't seeing it somehow. Any ideas? Commented Mar 7, 2013 at 16:22

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.