Results 1 to 14 of 14

Thread: [RESOLVED] ASPNETDB SQL 2005 not opening in SQL2008

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    312

    Resolved [RESOLVED] ASPNETDB SQL 2005 not opening in SQL2008

    Hey there.

    Well i have built a website in Visual Web Developer 2008. I Also have Visual Studio 2008 installed. In my website, for membership and login, i gone through the Website Configuration and an ASPNETDB database was created for me. All fine no worries.

    Now i installed MS SQL Server 2008, and before installing that it wanted me to remove other SQL version (2005), so i uninstalled that. Now i have SQL Server 2008 on my pc, but now when i double click my ASPNETDB in solution Explorer of Visual Web Developer it gives me the following error

    Connection to SQL Server .mdf file required SQL Server 2005 to be installed
    Well, that makes sense as i have uninstalled SQL 2005.

    Now my problem is, i want to open that SQL Server 2005's Db (ASPNETDB) in SQL Server Management Studio 2008, and when i go to file and open, it gives me this error

    Make sure the Application for .mdf is installed
    Is there anyway i can make that SQL 2005 created .mdf to open in SQL 2008 Studio??

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    Hey,

    Within Visual Studio, can you go to:

    Tools | Options, then Database Tools | Data Connections.

    What is listed there in the SQL Server Instance Name?

    Gary

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    What you need to do is attach the database, not open it. I'm a little shocked that 2008 made you uninstall 2005 first. I've got several machines with both installed w/o any problems.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    Hey,

    I agree, I have both installed on my home machine, and they live happily side by side. Which one Visual Studio "uses" depends on the Instance Name, as I was directing you to above.

    Gary

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    312

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    Quote Originally Posted by gep13 View Post
    Hey,

    Within Visual Studio, can you go to:

    Tools | Options, then Database Tools | Data Connections.

    What is listed there in the SQL Server Instance Name?

    Gary
    It says SQLEXPRESS.

    I dont know man, there are lots of stuff installed in my PC, like Database publishing, SQL Server 2005, SQL Server 2008, etc, dont know why it gave me an error of uninstalling

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    Hey,

    Ok, so this is still referring to the previous SQL Server Express instance that you said you have uninstalled from your machine.

    Do the following:

    Click Start | run
    Type services.msc and hit enter

    In the window that opens, scroll down to SQL Server. The part in brackets is the instance name. What does it say?

    Gary

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    312

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    Quote Originally Posted by gep13 View Post
    Hey,

    Ok, so this is still referring to the previous SQL Server Express instance that you said you have uninstalled from your machine.

    Do the following:

    Click Start | run
    Type services.msc and hit enter

    In the window that opens, scroll down to SQL Server. The part in brackets is the instance name. What does it say?

    Gary
    There is no SQL Server service running right now. Do you want me to install SQLExpress 2005 on my PC?? I have already downloaded that

  8. #8
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    Quote Originally Posted by techgnome View Post
    What you need to do is attach the database, not open it. I'm a little shocked that 2008 made you uninstall 2005 first. I've got several machines with both installed w/o any problems.

    -tg
    I don't think it makes you, but I remember there being some option to upgrade it which I remember specifically not doing so I could run them side by side.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  9. #9
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    Quote Originally Posted by Raziiq View Post
    There is no SQL Server service running right now. Do you want me to install SQLExpress 2005 on my PC?? I have already downloaded that
    I thought the whole point was that you are moving away from 2005, to 2008?

    In which case, what I am suggesting is that you put the SQL Server 2008 instance name into Visual Studio.

    Gary

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    312

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    Hi Guys, thanks for the replies.

    Alright i am installed SQL Server Express 2005 and then i tried to open the same ASPNETDB.mdf file in my SQL management Studio 2008, it gives me this error of reinstalling the SQL SERVER 2005.

    here is the screenshot


  11. #11
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    Hey,

    Okay, I think that error message says it all. Looks to me like your installations are in a bit of a mix up. I would suggest that you completely remove all components of SQL Server, and start again.

    Gary

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    312

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    Well i have reinstalled everything. Now this is what i have got.

    I have Management Studio 2008. I Connect to the Local Databases, and right click the Databases and click attach, a new Windows popups up saying "add", when i click add, i get this stupid error.


  13. #13

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    312

    Re: ASPNETDB SQL 2005 not opening in SQL2008

    Alright i have got hold of that error , problem solved, i followed instructions here and worked perfectly for me.

    http://www.linglom.com/2009/03/28/en...-2008-express/

  14. #14
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] ASPNETDB SQL 2005 not opening in SQL2008

    Hey,

    Glad to hear that you got it working!!

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width