Freigeben über


How to fix your SQL Server 2008 Setup before you run setup...

Huh? This is not meant to be a brain teaser. The purpose of this post is to help you avoid problems with SQL Server 2008 setup before you run..well setup. Why not take advantage of known fixes we have for setup to avoid the problem in the first place? This would include a new installation, upgrade, or a install of a new instance or feature.

In this blog post, I'll give you details on how this works and point you to resources for known setup fixes that might affect you.

So let's say you are going to install SQL Server 2008 for the first time. You would like to avoid known setup problems that are already fixed.

1. Go to the article for SQL Server 2008 Cumulative Update 1 (CU1). Later in this post, I'll talk about our plans to provide a known KB article which you can always use to find the latest set of fixes for setup.

2. Download the hotfix package just as though you are going to install a cumulative update package. See this blog post for more information about the process to download fixes from KB articles.

3. Install Windows Installer 4.5 if it is not already installed on your machine. How do you know if it is already installed? Unfortunately, Windows Installer is does not show up as separate application. It is a Windows Update so you will need to look for installed Windows Updates on  your machine. It should be something like "Update for Microsoft Windows (KB942288)"

Even though the standard setup for SQL Server will install Windows Installer 4.5 for you if it detects it is not installed, our cumulative update packages requires it be installed already because it uses this version of the installer when it is launched.

If you don't  having Windows Installer 4.5 and run the hotfix package we will detect this and let you know about:

image

Another pre-requisite for SQL Server 2008 setup is the .Net Framework 3.5 SP1 (See the following blog post for more information on this). Technically, the bare minimum for this process is to have .Net 2.0 SP2 installed but there is no .Net 2.0 SP2 to download from the web. Therefore, if you install .Net 3.5 SP1, you will have the necessary .Net software. The only exception to this is Itanium platforms where there is no .Net 3.5 SP1. for Itanium customers, you need to install .Net 2.0 SP2 from the DVD or SQL Server 2008 source media (you can find this in the ia64\redist\2.0 folder from SQL Server 2008 media source).

4. Now you are ready to run the hotfix package. Simply execute the package (for CU1 on x64 the name of the package is called SQLServer2008-KB956717-x64.exe). When you run this package, you are immediately shown a License screen (notice there are no setup rules check here as with the normal CU1 package install).

image

Hit Next and you now get a screen similar to the setup from the DVD to install the SQL Support Files:

image

Select Install and you get a Progress Bar on this screen.

image

When this is done, a dialog box will appear and then disappear fairly quickly. It is very possible you will not see this.

image

Unfortunately there is no "Success" screen for you to acknowledge like there is for the standard or CU setup.

The simple way to see that this has worked is to look at Add/Remove Programs (prior to Vista/Windows Server 2008) or Programs and Features applet (Vista or Windows Server 2008).

You should now see Microsoft SQL Server 2008 Setup Support Files installed with a new version (RTM is 10.0.1600.22 and CU1 is 10.0.1763.0)

image

What Now?

Now go and install SQL Server from the DVD. When it runs, it will see that SQL Server 2008 Setup Support Files is already installed and use that local version. Therefore, any fix we have created that is part of SQL Server 2008 Setup Support will be used when you install the normal setup.

When you are finished, you might also want to apply CU1 to your installation. Simply run the CU1 package again and you will be prompted through the full CU1 installation. See this blog post for more information of what this experience looks like.

The update to SQL Setup Support Files also allows you to take advantage of fixes that affect installation of new instances or addition of new features.

What are the Possibilities?

Let's take a look at an example. If you look at CU1, you will notice a setup issue described as:

50003401 957453 FIX: When you install SQL Server 2008, the installation fails, and the "Attributes do not match" error message is logged in the Summary.txt file

This problem is a bit on the edge as it only occurs if you have the Archive bit set for a folder that is part of the destination where you are installing SQL Server (the "installation folder"). Let's say you decide to install a particular instance into a directory called c:\sql2008.  If you had the archive bit set for c:\sql2008 before you installed, you would encounter the following error during setup if you performed an unattended installation as seen in the following console window where you ran setup (if you install through the GUI you actually hit a validation warning as you go through the setup screens):

image

So if you hit this error, but perhaps could not find out the reason why or for some reason needed this bit to remain set, you could uninstall SQL Server 2008 (The Summary.txt file actually instructs you to do this when you encounter the failure). Then follow the instructions above to apply CU1 which installs the updated SQL Server 2008 Setup Support Files.

Please note that in this situation when you uninstall the product, we don't uninstall the SQL Server 2008 Setup Support Files, so when you go to apply CU1 to just update this component, you will see a few extra screens you do not get when applying CU1 when no SQL Server 2008 software is installed (here is an example of one of them). Just proceed through these until you get a final Success screen.

image

image

Now when you go back and run setup again even with the archive bit set, setup will not fail and succeed with the installation.

This capability also allows us to create new setup rules that help you see possible problems with your configuration that can cause an installation failure.

Some Observations

A few interesting notes about this process:

1) Unfortunately, you have to download the entire CU package which can be almost 170Mb to use this process but the installation itself just takes a few minutes. I recommend you save the CU package because after you install SQL 2008 off your DVD or install point you will want to run the CU package again to install the full CU update to SQL Server.

2) You can right-click the program and select "Repair" but it prompts for the location for sqlsupport.msi. Selecting this option doesn't make sense as there is no repair for SQL Server 2008 Setup Support Files.

3) If you have installed this once and try to install a CU1 package again without having installed setup from the DVD, you are led down a series of screens that make our CU1 package think the full product is installed.

4) This process only installs the SQL Server 2008 Setup Support Files. This is not the entire software required to run setup. Therefore, there are some setup problems that cannot be fixed using this method.

5) Just like the standard CU1 installation, you can run the hotfix package to just install the SQL Server 2008 Setup Support Files without responding to any screens. Use a syntax like the following:

<package name.exe> /QUIET

For example, for CU1, run this from a command prompt on x64:

SQLServer2008-KB956717-x64.exe /QUIET

you will see a console window pop-up but then exit without the need to respond to anything:

image

Like the CU1 full package installation, you can use the /INDICATEPROGRESS option, but it does dump out alot of output to the console.

6) You can also uninstall the SQL Server 2008 Setup Support Files by using Add/Remove Programs or Programs and Features. The only window you see when you do this is a dialog box like this:

image

What About the Future?

Because we have the ability to install the SQL Server 2008 Setup Support Files without the product being installed, we can continue to provide fixes in our Cumulative Updates (or even interim hotfix packages called On Demand Fixes) for the SQL Server 2008 Setup Support Files. Since our hotfix model is cumulative, each new Cumulative Update will contain the latest SQL Server 2008 Setup Support Files installation.

To help you always find the latest version of the SQL Setup Support Files, we are working on a KB article that we will maintain a running list of all fixes for setup. The "download" capability of our KB articles will be maintained so that if you download from this article, you always get the latest hotfix package so you get the latest SQL Setup Support fixes.

I will update this blog post in this section when this article is complete so you will have a pointer to always find it.

 

Bob Ward
Microsoft

logo-header-sql08-dg

Comments

  • Anonymous
    September 30, 2008
    PingBack from http://www.easycoded.com/how-to-fix-your-sql-server-2008-setup-before-you-run-setup/

  • Anonymous
    September 30, 2008
    One of the most common asks for SQL Server related to servicing/patching (after uninstall of updates/SPs)

  • Anonymous
    October 06, 2008
    The first cumulative update for SQL 2008 has some fixes for the setup of SQL 2008. However there isn&#39;t

  • Anonymous
    October 21, 2008
    Hi All, As promised I&#39;m posting the 2 presentations from the last meeting: 1. SQL Server 2008 – Business

  • Anonymous
    November 21, 2008
    Thank you for this post. I think you might need to add one thing, however. I followed your instructions when installing a new fail-over instance, but wasn't able to initially complete the installation, because the hotfix for Windows Server 2003 Filestreams hadn't been applied to the OS. I'd suggest you add that to your instructions.

  • Anonymous
    November 21, 2008
    BTW - The article you should look for regarding the Filestreams hotfix is KB937444.

  • Anonymous
    December 04, 2008

  1. Is there a way to encapsulate all these in 1 setupsql.msi command? by now, as CU2 is also out, what are the steps to silent deploy a SQL 2008 server?
  • Anonymous
    December 10, 2008
    Very nice article :).. It helped a lot

  • Anonymous
    February 23, 2009
    I now use this process when installing SQL Server 2008 database engine. It works very well with installing clusters as well. I'm curious whether there are any recommendations similar to this regarding installing SQL Server 2005 instances? Link?

  • Anonymous
    March 17, 2009
    Last year you might have read my post where I showed you how to patch setup for RTM for SQL Server 2008

  • Anonymous
    April 09, 2009
    One of our readers sent me the following questions I think you will find valuable when understanding

  • Anonymous
    April 25, 2009
    General slipstreaming questions: Question #1: What is Slipstreaming? Answer: It is a term used to describe

  • Anonymous
    July 09, 2009
    I have tried to install it on 7 and every time I try I get an error under the configuation. It tells me that I need at least one administrator account. No matter what account I use or anything that I try I can not get it past that point. I only have one administrator account and password but it won't work. I know I need to install the SP1 to it before I can use SQL, but can't do that until I get it installed. Can you give me some ideas what I can do to get it installed? Thanks

  • Anonymous
    December 07, 2009
    Hi, this is a great article! For those setting up IIS to work with SQL, I have an article here: http://blog.evonet.com.au/post/2008/08/24/Setting-up-SQL-Server-2008-for-an-ASPNET-website-on-IIS-70.aspx

  • Anonymous
    January 13, 2010
    I have tried to install it on 7 and every time I try I get an error under the configuation. It tells me that I need at least one administrator account. No matter what account I use or anything that I try I can not get it past that point. I only have one administrator account and password but it won't work. I then tryed to install the Hotfix CU1 and can no longer log onto my machine.  Help

  • Anonymous
    February 26, 2010
    Sadly, after applying the CU1 (v 10.0.1.1763.0), click on Setup.exe, I still get the error "Microsoft .NET Framework 3.5 installation has failed. SQL Server 2008 requires .NET Framework 3.5 to be installed". Yes, I (Windows Server 2008) have .NET 3.5 SP1 and Windows Installer 4.5 installed.

  • Anonymous
    April 16, 2010
    The comment has been removed

  • Anonymous
    April 16, 2010
    I have attempted the above mentioned process and have the same issues of "SQL server 2008 requires .NET 3.5 to be installed." I have tried many recommendations from this web page and others and nothing has fixed this issue. Is their a real solution to this problem of not being able to install SQL DEV edition or Entrpise edition on a 2008 server? I have tried 2 boxes, 2 different SQL editions and the exact same errors. Allen

  • Anonymous
    May 06, 2010
    Trying to install sql server 2008 in windows 2008 clustering enviornment. Nothing happens when i click on setup.exe. Once black screen opens and closes after a sec. Please suggest if any body has solution.

  • Anonymous
    October 03, 2010
    In my case, I got error 50003401: "Attributes do not match" (MS Fix: support.microsoft.com/.../957453) due to 'Compressed' attribute on installation folder. On Uncompressing the folder and its children, installation was successful.

  • Anonymous
    April 26, 2011
    i  already installed.. sqlserver in my laptop .. but it is showing tht. TITLE: Connect to Server


Cannot connect to (local).

ADDITIONAL INFORMATION: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)

  • Anonymous
    February 21, 2012
    The comment has been removed

  • Anonymous
    June 28, 2012
    Recover sql server databases thanks to programmed method I would recommend you next utility www.sqlserver.fixtoolbox.com

  • Anonymous
    September 10, 2012
    This video wil help a lot www.youtube.com/watch

  • Anonymous
    October 10, 2012
    The comment has been removed

  • Anonymous
    October 29, 2012
    al querer instalar sql server me sale this sql server media is not supported on  a  X64 syestem. to continue, run the sql server setup media that matches your system

  • Anonymous
    November 10, 2012
    Microsoft on the contrary seems to suggest you should not apply cumulative updates unless you have to. For example see: Cumulative update package 1 for SQL Server 2008 R2 Service Pack 2: support.microsoft.com/.../2720425 A supported cumulative update package is now available from Microsoft. However, it is intended to correct only the problems that are described in this article. Apply it only to systems that are experiencing these specific problems. This cumulative update package may receive additional testing. Therefore, if you are not severely affected by any of these problems, we recommend that you wait for the next SQL Server 2008 R2 service pack that contains the hotfixes in this cumulative update package.

  • Anonymous
    November 17, 2012
    For some reason Microsoft Update automatically decided that I needed to "update" SQL server 2008 WHEN I DID NOT HAVE AND DID NOT WANT.

  • Anonymous
    June 16, 2013
    its being installed but not found in any of the applications and i can see only the configuration manager working correctly.when i open my visual studio and click connect to database i can see sql database names there.what to do????

  • Anonymous
    June 09, 2014
    i hav install hotfix package and windows installer 4.5  in my lappi according to above instructions but still there is a error message on the screen that the sql server setup media not supported on a x64 system, to continue,run the sql server setup media that supported your system.. now, what should i do? plz tell me...plz.

  • Anonymous
    March 13, 2015
    Check out my blog for Repair MDF File of SQL Server:- repairandmanage.blogspot.in/.../sql-server-recovery.html Thanks

  • Anonymous
    September 06, 2015
    i have some problem while installing sql server 2008..it shows error message like "instance name is already existed".