Cannot open user default database

Rate It (1)

Last post 07-04-2008 9:42 AM by Som Nath Shukla. 23 replies.

Sort Posts:

  • Re: Cannot open user default database

    07-09-2007, 1:59 PM

    fatmidget:

    I had the same use and tried a whole bunch of things, but this is what solved it for me:

    - it seems I had the DB still opened inside my IDE (Visual Web Developer Express), in the database explorer. Right-clicking the database and selecting "close connection" fixed it.

    Hope this helps.

    This one worked for me too.. Thanks for solution
  • Re: Cannot open user default database

    07-30-2007, 4:32 PM
    • Loading...
    • jeeva.net
    • Joined on 06-11-2007, 7:50 AM
    • Posts 16

    Thanks a Million Monish.. you made my day.. indeed the week today being monday Smile.. a very simple solution for an irritating issue, i was breaking my head for 1 full day !

    Regards,
    Jeeva

  • Re: Cannot open user default database

    09-29-2007, 9:46 AM
    • Loading...
    • stibet
    • Joined on 09-29-2007, 1:39 PM
    • Posts 29

     

    Well , but I cannot open "Member of" section of the properties. When I try this , it gives me the following error message box ;

     The Following error occured while attempting to read the properties of user ASPNET
    The Server Serivice is not started

    What might be the problem ?

    Thanks in advance

    sst
  • Re: Cannot open user default database

    11-12-2007, 3:40 AM
    • Loading...
    • imperialx
    • Joined on 06-28-2007, 10:07 AM
    • Posts 345

    fatmidget:

    ...
    - it seems I had the DB still opened inside my IDE (Visual Web Developer Express), in the database explorer. Right-clicking the database and selecting "close connection" fixed it.

    Hope this helps.

     

    Hi, 

     

                   I run into the same problem.

                   Because the close connection is disabled at Database Explorer, I delete the database then add a new connection by choosing the same database deleted. I can now disable the enabled close connection by right clicking the database.

     

    By adding a new connection, the connectionString attribute in connectionStrings at web.config replaces the default connection to

    connectionString="Data Source=[SERVERNAME]\SQLEXPRESS;AttachDbFilename=|DataDirectory|\smsdata.mdf;Integrated Security=True" providerName="System.Data.SqlClient"/>

    just replace the [SERVERNAME] to period(.) like so Data Source=.\SQLEXPRESS    

     

                   Thanks Fatmidget!

     

     

    cheers,
    imperialx 

     

  • Re: Cannot open user default database

    12-05-2007, 11:20 AM
    • Loading...
    • xiaoweib
    • Joined on 12-03-2007, 2:08 AM
    • Posts 5

    I tried this way, but still has

    "Cannot open user default database. Login failed.
    Login failed for user 'DEV\ASPNET'.
    "

    my database is not at local machine, it is remote machine. I can't use this way. what can I do????

  • Re: Cannot open user default database

    05-02-2008, 7:49 PM
    • Loading...
    • ruchis
    • Joined on 05-02-2008, 11:48 PM
    • Posts 1

     Hey...It worked for me...This was nicely done....Thank u...

  • Re: Cannot open user default database

    06-07-2008, 1:05 PM
    • Loading...
    • gnogna82
    • Joined on 04-14-2008, 7:32 PM
    • Italy
    • Posts 1

    Hi All,

    after trying something like 10 random workarounds for this issue I finally had it working by just deleting the MACHINENAME/ASPNET user from SQL Server 2005 Express.

    Best regards,
    Dario Rossa

  • Re: Cannot open user default database

    07-04-2008, 9:28 AM
    • Loading...
    • safalea
    • Joined on 07-02-2008, 9:32 PM
    • Posts 13

     

    monishjain, very clever, you found it

     

    thanks a lotSmile 

  • Re: Cannot open user default database

    07-04-2008, 9:42 AM

    u need to give right to servernmae\aspnet account in sql server.

    it is local account created at the time of iis installtion . iis only request through this account . so this account  should access to sql server. 

    Thanks and Regards
    Som Nath
    Please click “Mark as Answer” on the post if it helps you,
Page 2 of 2 (24 items) < Previous 1 2
Microsoft Communities
Page view counter