WMI Configuration Error on SQL 2005 install - sql-server

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

Related

Oracle Linked Server in SQL Server 2017

I'm trying to set up a linked server from a SQL Server 2017 instance to an Oracle database. I have found similar questions where the question is for Visual Studio and the answer was to install ODAC, but the link provided is to a 32 bit ODAC specifically for VS2017.
Other solutions I have found suggest installing the full Oracle Server. I just need the OraOLEDB.Oracle provider for a LinkedServer on SQL Server. I have the TNSNAMES file and everything and have accomplished this before, but only by installing the full Oracle Server, but that feels like overkill. What is the minimum I would need to install and configure on my SQL Server box to accomplish this? This feels like it should be very easy to accomplish, but for some reason it is not for me.
Many thanks!
OK after several hours I figured this out myself. I needed to install the 64 bit ODAC components from the Oracle Website.
Once I had that I needed to unzip and execute the install.bat batch process from command prompt, running cmd.exe as an administrator
d:\oracle\install.bat all c:\oracle odac
*Note above, you can download your ODAC to anywhere, for me it was a directory I created in d:\oracle... and you can install to anywhere, but I think c:\oracle is common.
Once I did that, I needed to add c:\oracle and c:\oracle\bin to my PATH environment variable.
So this was quite simple in the end. Hope this helps someone else trying to navigate the same challenge.

SQL Server 2008 Installation

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.

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

How can I install SQL Server Express 2008 with Advanced Services?

Has anyone successfully installed SQL Server Express 2008 with Advanced Services?
I've tried several times and half way through the installation I always get the error:
The downloaded file appears to be corrupt.
I found this thread on MSDN but it seems that no one there could get it to work. They were only successful in installing the 'SQL Server 2008 Express with Tools' (default) option.
I need to have Full-text Search so I need the 'Advanced Services' option. If anyone has successfully installed this then would be they so kind as to share the method used?
My experience in XP Pro SP3 and how I got through it. I went to the download page and clicked on the download link to install any version which downloads a bootstrapper (SQLEXP32_x86_ENU_Bootstraper.exe) which if you select the advanced services edition fails to load the install file (SQLEXPRADV_x86_ENU.exe) . After many headaches,disk cleanup, etc. I tried the link for the specific advanced services edition. This downloads the file (SQLEXPRADV_x86_ENU.exe) itself which can then be run. I had to run it from the command prompt, but that's probably just my persinickety system. At any rate, while there are probably more problems ahead, at least this get the installer running. It comes up with the SQL Server Installation and you have to step through it manually.
BTW I tried to post this to the social.microsoft site but couldn't log in.
Just curious if you've tried re-downloading the file from Microsoft's servers? If I remember right there was a 'blip' where some of the files posted to the servers were, in fact, corrupt.
I agree with Thomas that there are some really funny things going on with XP SP3 and SQL Server 2008 installs, particularly if you use a non-English locale. But the log files in that case should yield problems indicating an MSXML 6 problem (due to the MSXML files becoming protected), not a corrupt download file.
If you download the file again and run it, can you post the contents of the most recent Summary*.txt file you find on your C: drive? Just search for summary*.txt and it should be in a folder like...
%Program Files%\Microsoft SQL Server\Setup Bootstrap\Log\
...(but I forget exactly where Express puts this). This log file may yield better errors than the handful of exceptions the GUI has been coded to handle.
Visit http://forums.extremeoverclocking.com/t303972.html
as of Nov 2009 the SQLEXPRADVx86ENU.exe claims to be 502M on the download page, but downloads as 356M, and does not execute. This happens on both a T1 and a DSL connection, so I'm fairly sure it's not the download failing.
I was able to install the "Runtime with Advanced Services" by using the unpleasantly painful Web Platform Installer.

Resources