THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | Join | Help
in Search

Aaron Bertrand

Is SQL Server 2008 supported on Windows 7 / Windows Server 2008 R2?

Yes it is!  See this blog post from Peter Saddow:

http://blogs.msdn.com/petersad/archive/2009/08/11/sql-server-on-windows-7.aspx
First, if you have User Access Control in full swing, UAC will generate the following prompt to make sure you're okay with SQL Server making changes to your computer:



If you're not okay with this, obviously, click No, and go about your day as usual.  Otherwise, click Yes.

Remember that you need to leave the SQL Server Installation Center running while setup continues.  This means you will have two setup icons in your taskbar; in the past, I've attempted to de-clutter my desktop during setup, only to find out that the Installation Center needs to be running or else your temporary files will disappear.  I complained about this issue here, but it will not be addressed in this release:
http://connect.microsoft.com/SQL/feedback/ViewFeedback.aspx?FeedbackID=388671
Next, you will get a warning during setup (multiple times; once when you launch setup.exe, once when you select "New SQL Server stand-alone installation...", and possibly through other paths as well) that only SQL Server 2008 SP1 is supported on your operating system:



In the past, this dialog has stopped a lot of people in their tracks, as they thought there was a serious issue and/or that setup would not allow them continue.  Rest assured, you can safely ignore this warning, just make sure to install SP1 before you do anything else.  While you might already be seeing it through Microsoft Update, you can download SP1 manually here:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19
Please make sure you download the right language for your operating system / SQL Server instance.  I have seen more than one customer complain that they ran the SP1 installer, but it could not find any components to update, because the language did not match.  (The fact that setup couldn't give a more helpful error message is another issue.)

If you are ambitious, you could avoid this warning by slipstreaming your install with SP1 (and optionally, post-SP1 cumulative updates).  Peter also has some great blog posts and FAQs on this process:
http://blogs.msdn.com/petersad/archive/2009/02/25/sql-server-2008-creating-a-merged-slisptream-drop.aspx

http://blogs.msdn.com/petersad/archive/2009/04/16/create-a-merged-slipstream-drop-containing-sql-server-2008-server-pack-1-and-a-cumulative-update-cu-based-on-server-pack-1.aspx

http://blogs.msdn.com/petersad/archive/2009/04/24/sql-server-2008-slipstream-frequently-asked-questions.aspx

http://blogs.msdn.com/petersad/archive/2009/06/17/creating-a-merged-slipstreamed-drop-containing-sql-server-2008-rtm-service-pack-1.aspx
Whether you slipstream or not, once setup gets to the point where it is going to launch the Setup Support Rules screen, you may see this error:

Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

This is due to a Windows 7 change in how .NET UI dialogs are closed, and will be addressed both in a future 2008 CU and in 2008 R2 (see Peter's addendum about this issue here).  In the meantime, I have found that the problem goes away if I reboot (as John Paul Cook pointed out earlier), but not if I simply shut down setup and start over.  This likely affects SQL Server 2005 setup as well, since they share the same installation framework; however, if that is the case, I doubt it will be fixed.

John also explains that when you setup SQL Server 2008 initially, leave out Books Online, as a more up to date version is available here:
http://www.microsoft.com/downloads/details.aspx?FamilyId=765433F7-0983-4D7A-B628-0A98145BCB97

Finally, watch this Knowledge Base article, as it is being updated for the final release of both Windows 7 and Windows Server 2008 R2:

http://support.microsoft.com/kb/955725

A side note : can you blue screen Windows 7?

Yes you can!  I did this today, using only the SQL Server 2008 installer and Task Manager.  Here is how I did this, in a VMWare Fusion virtual machine:

  1. I launched setup, and got the "Invoke or BeginInvoke..." error from above.
  2. I quit setup (and an instance of SSMS I had open) and rebooted.
  3. I launched setup again.
  4. The Setup Support Rules screen seemed hung, so I opened Task Manager and was surprised to find an instance of SSMS there.
  5. Being impatient, I highlighted ssms.exe and clicked "Kill Process."
  6. The dialog I got insinuated that I would lose data.  Since I knew I had not opened an instance of SSMS, I shrugged and killed the process anyway.
  7. I was immediately presented with a BSOD, and VMWare quickly "recovered" by restarting the VM.

This actually hosed my Windows 7 Virtual Machine so badly that I had to delete it from within VMWare Fusion.  I would try to start it up, and it sat there frozen.  So I deleted it and am rebuilding a Windows Server 2008 R2 VM as I post this (it was released on MSDN/TechNet, and maybe Connect too, earlier today).  I should learn to create snapshots before installing software, but quite honestly this is by far the worst outcome I've ever had with a SQL Server install, and the VM was a brand new throw-away anyhow.

SQL Server 2008 R2


Many of the same elements apply for SQL Server 2008 R2.  A couple of additional notes, which have been mentioned before but are worth mentioning again:

  • You cannot revert to 2008 tools once you install 2008 R2.  You can uninstall the 2008 R2 instance, but the client tools will not revert back to the previous version.  If you already have SQL Server 2008 client tools installed, you will see this warning on the "Installation Rules" screen in SQL Server 2008 R2 setup:


     
  • You cannot upgrade any existing instance (2008 or otherwise) to R2, because only Enterprise Evaluation is currently being offered, and there is no upgrade path.  So, if you already have SQL Server installed, you will need to install a separate instance in order to play.  Probably the safest route for now, but since I tried to perform an upgrade, I figured some of you might try it too.

Hope this information is useful.
 

Published Friday, August 14, 2009 5:12 PM by AaronBertrand

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

thorhalvor said:

Hi,

I turned off the firewall and then runned the setup.exe again. Then it worked!

August 16, 2009 9:23 AM
 

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout

August 16, 2009 7:00 PM
 

SqlServerKudos said:

Kudos for a great Sql Server article - Trackback from SqlServerKudos

August 17, 2009 2:05 PM
 

AaronBertrand said:

Thor, yes, firewall configuration can be a stumbling block.  During setup you are warned about firewall issues, but setup lets you continue.  You can take a look at this page to determine how to configure it correctly (turning it off kind of defeats the purpose, even if only temporarily, and often people will forget to turn it back on).

http://msdn.microsoft.com/en-us/library/cc646023.aspx

August 21, 2009 5:34 PM
 

RickButler said:

Thanks! I just moved to Win 7 x64 and thought I was screwed. Whew! Restarting the install worked like a champ. :-)

November 26, 2009 9:25 PM
 

Sonal said:

Thanks...usfull info :)

December 15, 2009 5:28 AM
 

Arvind Dungerwal said:

Thansk thorhalvor for your valuable tips.

February 12, 2010 12:37 AM
 

Naveen said:

hey guys me too had the same problem while installing sql server 2008

i followed the link given below and i'm able to complete my installation too. i hope this would be useful for u too...

http://www.sql-server-performance.com/articles/dba/Steps_to_Install_SQL_Server_2008_p1.aspx

February 18, 2010 7:20 PM
 

Tu said:

I turned off the firewall and then runned the setup.exe again. Then it worked like champ

February 21, 2010 8:29 PM
 

diNa said:

hey, i'm running my program in Win7 32bit. my program is use VB 6.0, SQL Server 2008 and CR 10. then i get this msg " Invalid procedure call or argument"

first, i guess that the error come from my program, but when i install it to the XP SP2 nothing wrong with it.

then why can't i running it in Win7

February 23, 2010 10:27 PM
 

Miguel Barbosa said:

When trying to install SQL Server 2008 on Windows 7, during "installation progress" this will be stoped for a long time.

It is at almost 80% of full installation and it is blocked in the function "SqlEngineDBStartConfigAction_install_configrc_Cpu32".

Is this a known issue, how can I solve it?

Kind Regards

Miguel

March 16, 2010 2:51 PM
 

Installing SQL Server 2008 on Windows 7 | Sev17 said:

March 21, 2010 11:59 AM
 

Carlos K said:

When you say:" Rest assured, you can safely ignore this warning, just make sure to install SP1 before you do anything else."

Are you saying leave the dialog open and install SP1 or Press "Run Program", install it, then install SP1?

April 13, 2010 10:37 AM
 

AaronBertrand said:

Carlos, you can't install SP1 before you install the base product.  What I meant was, finish the install, then before doing anything ELSE, install SP1.

April 13, 2010 10:47 AM
 

Carlos K said:

Excellent, Thanks. I had a feeling, but just wanted to be 100% sure. Thanks for the fast reply.

April 13, 2010 12:24 PM
 

MS SQL 2008 installition issue. « Alex Blog said:

April 22, 2010 7:19 AM
 

Windows Firewall said:

Such an informative stuff.Thanks for sharing.

July 19, 2010 7:09 AM
 

Alireza said:

SQLServer2008SP1-KB968369-IA64-ENU.exe

SQLServer2008SP1-KB968369-x64-ENU.exe

SQLServer2008SP1-KB968369-x86-ENU.exe

I have Win 7 32 bit ,

So there is a question For me to Ask , Which One of those Link I Have to Download ???? The THIRD one ???

PLZ HELP

alireza7219@yahoo.com

August 14, 2010 9:46 AM
 

Aaron Bertrand said:

Yes, x86 = 32-bit

x64 = 64-bit

IA64 = Itanium 64-bit (pretty rare these days)

August 14, 2010 12:09 PM
 

alireza7219 said:

IS there any difference between Instaling visual studio 2008 first then Sql

and  at first install Sql and then visual studio 2008?????

August 16, 2010 12:54 PM
 

Aaron Bertrand said:

Personally, I would install SQL Server and then Visual Studio.  When installing Visual Studio, make sure to not install the Express Edition of SQL Server that is part of the install.  If you already have an instance of SQL Server locally (I assume Developer Edition) then there is little reason to add an additional Express instance.  You can do things the other way around if you want, but I remember the 2005 versions had a real problem in that case, and I rebuilt one machine because of it (and heard of several other similar stories).  I'm not sure that I trust all of these issues to be fixed in the 2008 editions.

August 16, 2010 12:59 PM
 

alireza7219 said:

Thanx Alot , Such a fast answering, Here is better than My university fo asking My Question.

August 16, 2010 1:09 PM
 

Aaron Bertrand said:

StackOverflow is probably a better place.  The author of a blog will see comments from a post that is a year old, but nobody else will, so starting a new thread there will get a lot more audience and a lot better chance at good answers and discussion.

August 16, 2010 1:13 PM
 

Arthur said:

I have installed SQL server 2008 enterprise in my Window 7 Professional x64. When I am opening SQL Server Management Studio on Connect to Server popup combo box I can't see SQL 2008 I have installed, but can see all others (2000, 2005...). Is anybody know where I can find my SQL 2008 Database Engine?

Thanks

August 18, 2010 3:36 AM
 

Aaron Bertrand said:

Arthur, is it possible that the SQL Browser service is not running?

http://msdn.microsoft.com/en-us/library/ms181087(v=SQL.100).aspx

Anyway if you remember the instance name you created then you can simply type in the name yourself:

.\instance_name

August 18, 2010 9:18 AM
 

alireza7219 said:

i write these code in my form load  :

Dim objConnection As SqlConnection = New SqlConnection()

       objConnection.ConnectionString = "Data Source=HADES-PC\Hades;Initial Catalog=C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\first.mdf;Integrated Security=True"

       objConnection.Open()

but When i run the program Says

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Could u help me

August 18, 2010 10:37 AM
 

Aaron Bertrand said:

First, validate that your named instance is in fact called "Hades". What do you see in regedit.exe > HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Microsoft SQL Server / Instance Names / SQL ?

Second, either change your computer name so it doesn't have a bad character (-) or get used to putting square brackets around it every time you use it.  Also consider using localhost or 127.0.0.1 instead of the name, or adding an alias to your hosts file and/or configuration manager.

Third, try connecting to your instance using Management Studio or something.  Code just adds layers to your testing and should be the next step after you know what your instance name is called and that it actually accepts connections.

Finally, post your questions on StackOverflow.  I don't mind providing a bit of guidance but this is certainly not a support forum.

August 18, 2010 10:47 AM
 

Arthur said:

Hi Aaron,

Thanks for your response.

I just typed instance name and hurray! I was able connect to my SQL 2008 server.

Thanks again, that was grate help!

August 18, 2010 8:28 PM
 

Arthur said:

Sorry for 'grate', of course great!

August 18, 2010 8:30 PM
 

alireza7219 said:

Would it be possible To introduce me a webpage To answer my questions in vb 2008 and sql 2008 , ?? a froum,

August 21, 2010 10:55 AM
 

Aaron Bertrand said:

August 21, 2010 11:13 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

About AaronBertrand

...about me...

This Blog

Syndication

Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement