SQL Server 2008 Installation - sql-server

I'm trying to install MS SQL Server 2008 on my Win 7 enabled laptop. I'm facing a problem while selecting the path to install. When I go on choose 'installation' and then when I click on 'New SQL Server stand alone installation or add features to an existing installation' it pops up a browse dialog box to select installation folder. I selected c:/program files/Microsoft SQL Server/ and tried all the folders under this folder. However, it gives me an error message saying
c:/program files/Microsoft SQL Server/ is not a valid installation folder
I tried 1000 times but still I'm getting the same error. I already had SQL Server 2005 and I uninstalled it. After that I'm only trying to install MS SQL Server 2008. What is the problem here? How can I fix this issue?

I recently had the same problem, I did the following:
Lets say you downloaded the SQLServer2008R2SP1-KB2528583-x86-ENU file to get SQL 2008 R2 and it won't accept the folder you choose. It is looking for your installation media AKA files to install your chosen option e.g. Upgrade or install.
Right click on the SQLServer2008R2SP1-KB2528583-x86-ENU file, click on extract files (winrar options). This will extract the install file giving you all the files that was compressed.
When SQL 2008 R2 Install Center ask you to choose the folder, select the extracted folder with all the files... problem solved!

I think the error that you run into is just a case of bad choice of words from Microsoft. When they give the message: "select installation folder" they actually mean the drive that contains your Sql Server installation Dvd. I run into the same problem, and all I had to do was select the dvd drive and it worked.

Durden81 is right - The error really means that it can't find the installation file. This seems to be a bug on versions of SQL Sever downloaded from internet or installed as part of the Visual Web Developer Express 2010 bundle.
I was searching for an answer to the same question and came across this. Unfortunately the other replies did not work for me. What did work was the following:
Go to the control panel and uninstall everything to do with "Microsoft SQL Server 2008" and any other version of SQL Sever you might have.
Restart your computer and go to the Microsoft Download center (http://www.microsoft.com/download/en/default.aspx) and search for: Microsoft® SQL Server® 2008 Express with Tools
Unpack this and run the installation.
Restart your computer before running Visual Studio again

While I don't think this has ever been a requirement, since it's not really clear from your question exactly which component is choking on the path, I suggest trying a simpler path with no spaces, e.g. "C:\MSSQL\" ...

I am agree with Durden81. It's actually the problem regarding the path. It wants you to choose the path where the sql server setup file lies. Give the correct path of the setup file, whether it is in DVD or in a drive.

Give the path of installer, this helped me.
For example if you have the SQL server installer on C:\SQL SERVER\Enterprise Edition\setup.exe
Provide the same path, this will solve the issue.

I got this error because the installation package was located on a network/virtual location. To resolve this, I found the correct path (by asking IT) and ran the .exe as administrator. All is good.

I received this error when clicking on the app in "Add/Remove Programs" to add features to the current install. Yes, you can proceed as #Marc Uberstein's answer, but re-running the ENU with a double click should get you where you need to go, without extracting, bypassing the "Add/Remove Programs" piece altogether. Not sure from your question if that is the route you took to arrive at the error, but this was the issue for me.

It depend on what error prompt you are getting. If it's saying "wrong folder" or something of that nature, then it's the folder that's causing the error. Just delete all the folders of sqlserver on your computer and restart and it should work, or you can go to property of that sqlserver folder and in advanced and un-check the compress and re-run. It should definitely work.

Related

I Cannot Install SQL Server 2019 Express. It gets stuck on Offline Installation of Microsoft Machine Learning Server Components

I'm trying to install SQL Server 2019 Express on my laptop. I initially click on custom to start and everything seems to go smooth up to the point where it's at the Offline Installation of Microsoft Machine Learning Server Components section.
When I get there I get a screenshot that looks like this:
From this point on I cannot figure out what to do next. I tried creating a directory, downloading all of the files listed to that directory, and enter that directory in the Install Path line. But when I do that the Next button still is disabled.
So what is the next step?
Thanks for any help
Download the 4 cab files below (same links in your screenshot):
SRO_3.5.2.125_1033.cab
SRS_9.4.7.25_1033.cab
SPO_4.5.12.120_1033.cab
SPS_9.4.7.25_1033.cab
then, create a new folder MLMcServer in your C: drive C:\MLMcServer.
Put the 4 files there without extracting them
Finally, return to the installation dialog and browse to the location of the created folder C:\MLMcServer
You, No need the Machine Learning Services – Offline. you can untick Machine Learning Services in the feature session. Otherwise, you need that. You have to download the correct files that match the version of SQL you're installing. The files you're using from that link provided will not work since it is an older version and you are installing 2019, have you tried: learn.microsoft.com/en-us/sql/advanced-analytics/install/sql-ml-component-install-without-internet-access?view=sql-server-ver15 Those are the current files for 2019 RTM.
Anyone using a SQL Server installer in another language should know that downloading the files and placing them in a folder for the installer to detect will not work. What worked for me is to use the English installer.
If you want you can use the SQL Server installer in another language, but uncheck the features of Microsoft Machine Learning Server; When you have finished installing the SQL Server instance and the other features, you must now run the installer in English, select that you want to add features to an existing instance, mark the missing features of Microsoft Machine Learning Server and go through the steps of downloading the files and place them in a folder, select the folder where the four files are and the Next button will work correctly.
Downloading the .cab files, does not work.
Downloading the .iso files, does not work.
Only solution is moving the client to mySQL, where they should have been all along.
Not being lead around the nose by Microsoft.

Confused about the currently installed version of SQL Server

Someone has installed sql server on my machine, however i'm not sure what is the version currently installed. I tried running : Sql server installation center --> Installed Sql server features discovery report and the result was as follows:
I tried looking in the "Programs and features" section and I found this:
I also tried opening Sql server Services but its empty. Here's a screenshot:
The currently running the services are :
Currently I'm not sure what version is installed, I tried connecting to "." on Sql Management Studio but i got connection error and no instance was found.
Since you can't connect, probably the best thing to do is hunt it down on your file system. Go to your installation, it's probably located somewhere like this:
C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQSERVER\MSSQL\Binn
and find the sqlserver.exe file. Right-click and select Properties on the file. The Details tab of the properties window will show a product version. The product version isn't going to be a name you're super familiar with, but you can look up on the web what version numbers correspond to what product names. Here's one place that has a nice chart. SqlServerBuilds at Blogspot
If you do get management studio to connect, you can get the version quite quickly, either from the connection properties in the Object Explorer, or with the ad hoc query
Select # #Version
I uninstalled 2008 and 2014 version and now the discovery report shows Sql Server 2012 installation correctly
The existing answer is OK, but here is a simpler tip:
Search the entire drive C: for sqlservr.exe. Use the properties dialog in Explorer to determine the file version and Google it.
You can find out what's running with Process Explorer. It can show you the path and version.

SQL Server 2008 R2 Install Won't Work

I'm trying to install the developer edition of SQL Server 2008 R2. I run the setup as admin, but after it installs the "Setup Support Files", it closes and returns back to the installation center screen.
Any ideas?
I had this same problem and it appears to be something to do with previous versions leaving behind elements in their install/uninstall. I fixed it by running the Microsoft install/uninstall utility linked below. During the process you are asked what program you are trying to install and MSSQL Server 2008 R2 is listed. After running this the install continued after the "Setup Support Files" stage. Hope it helps!
http://support.microsoft.com/mats/Program_Install_and_Uninstall
So does it even installs Support files? You can check it by looking into "Programs and Features" (if using Windows Vista or 7) and if it is not there then it is not even installing support files. In that case may be you are missing components required for Support files itself (e.g. older version of Windows Installer).
Sometimes, SQL Server installer itself acts funny and without any reason it just crashes. Did you tried to run it again? Or try to run the installer after rebooting your system (I know this sound like a too rookie advice but in many cases rebooting OS solves issue).
The problem started when I change the shared folder directory from \Program Files(86)\SQL Server to custom folder. If I could have rename back to default, it should have been fine but I stop the installation and restart the install again assuming it will install fresh, but it did not and it hangs all the time.
I appreciate the comment from Lee, as per his advice I ran the fix it tool from Microsoft. The tool finds SQL Server 2008 R2 installed and I choose to uninstall.
When re-install the SQL Engine, it went through because this time, I did not change the Share Folder location and leave it to the default. I think this is some kind of bug in the SQL Installation. I wonder why Installation has to hang...!
The problem might be the location of the Setup Support Files.
Remove all the Setup Support Files using Control Panel/Uninstall Program.
After that install SQL 2008 from the beginning.

error when running any query in sql server management studio: the file exists

When I run any query in sql server management studio, I get the following error:
An error occurred while executing batch. Error message is: The file exists.
Restarting SSMS didn't help. Neither did rebooting the machine. The only thing I found on Google was someone saying "report the bug to microsoft" :P
(Windows XP Pro x64, SSMS 2005)
I've been struggling with this one for while and when I recently installed Toad for MySQL I got the same issue.
I installed sysInternals process monitor tool to try and work out which file was causing the issue.
The answer is temp files.
Both SQL server management studio and toad use a similar naming convention for their temp files. Both use the temp directory under your user account in Documents and Settings. In my case, there were over 60 thousand *.tmp files in that directory.
Watching the query execute through process monitor I could see the SQL IDE continually trying and failing to identify a temp file name which didn't exist until it finally gives up with a "The file exists" error.
The solution is simply to clear out the *.tmp files in your local settings temp directory.
Both SQL Management Studio and Toad for MySQL are now working fine on my machine.
Hope this helps.
Going further into Stephen's answer, the path would be:
For Windows XP: C:\Documents and Settings\%USERNAME%\Local Settings\Temp
For Vista and above: C:\Users\%USERNAME%\AppData\Local\Temp
Or simply paste %TEMP% into the Windows Explorer address bar to get the path.
I recommend this little plugin in case you can't access the route:
Take Ownership
http://www.sevenforums.com/tutorials/1911-take-ownership-shortcut.html
I ran into the same issue with SQL Server 2012 running on Windows 8.1. As #Stephen mentioned, the issue is with the temp files but I couldn't find them in the location he mentioned. Solved the problem by running disk cleanup and directing it to delete Temporary Files.
I have cleared temp files although issue was not solved hence I uninstalled the software through revo uninstaller thus it cleared all the software logs and software related registry data. And after re-installing problem was solved

WMI Configuration Error on SQL 2005 install

SQL Server 2005 is giving me the following error during the "System Check" portion of the initial install: "The SQL Server Configuration Checker cannot be executed due to WMI configuration on the machine Error:2147749907 (0x80041013)."
Machine is a Dell D620 running XP SP2.
I found a batch command online that is supposed to fix the problem, but it didn't work.
Any ideas?
Manju Madhavan on my team finally found the answer:
rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%\inf\wbemoc.inf
The setup asked for long list of files that I had to search around to find. Some were in the i386 folder on the XP SP3 disk, some in %windir%/system32. As the installer would stop and ask for a file I would search around until I found a copy.
Manju found the answer online and documents it on her blog.
Are you running Microsoft Operations Manager on your server?
May I suggest disabling any services that utilise the WMI interface, so any performance monitoring software you are using, just whilst you install SQL Server.
Cheers, John
Run
type or copy paste rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%\inf\wbemoc.inf
Connect your Windows XP SP3 CD
Find out "i386" folder and click enter and it will copy some file from there and will ask for a .mof file.
Search for the .mof file in where you installed Windows
Copy the location of that file and click OK.
Start installing the SQL Server 2005 and I'm sure you will face no more problems.
I don't know what script did you find, but the one I ran worked like a
charm. I'm putting here this answer for the ones that got to this post
looking for that error message like I did.
Just execute this .bat file.
Source: Pinal Dave's SQL Authority Blog

Resources