Saturday, 7 May 2011

"Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."

After my fun with trying to get VS, SQL and Phone Tools all working together, I had the following error trying to mount databases:

"Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."

If you get that error message, the solution that worked for me was to clear the SQL Express user instance data store, located at:

%userprofile%\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS
(or full path)

C:\Users\\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS

Hope this helps someone!

42 comments:

  1. thank you that's work for me

    ReplyDelete
    Replies
    1. toko kami menyediakan semua produk yang disebutkan diatas bahkan obat kuat pria herbal berasal dari cina maupun afrika langsung diimport agar menjaga kualitas dan keresmiannya, anda bisa memesan obat kuat secara online sehingga tidak kerepotan dengan cara menghubungi terlebih dahulu agen kami melalui kontak customer service, pertanyaan tentang produk obat kuat di cikampek dapat ditanyakan lewat sesi konsultasi.

      siapapun pria pastilah mendambakan bentuk kelamin besar apalagi panjang karena dianggap mampu memuaskan pasangan, untuk itulah banyak dari mereka mencari obat pembesar seperti vimax atau alat terapi terbaik seperti pro extender yang merupakan alat pembesar kelamin tanpa menimbulkan dampak negatif, alat tersebut dirancang secara profesional oleh dokter ternama asal canada dalam 2-3 bulan alat vital bertambah 3 inch lebih kalau pemakaiannya teratur.

      Delete
  2. HI I like to share what I found.
    I tried what you and many of them said but I couldn't get it done properly. I worked with the .mdf database file not connect with the SQL Server so all I have done change the
    connection string to this

    @"Data Source=.;AttachDbFilename=" + Server.MapPath("~/DATABASE_NAME") + @";Integrated Security=True;Connect Timeout=30;User Instance=True";

    instead
    .\SQLEXPRESS
    I used this
    .
    then it worked. also it can be done with Server Explorer-> Add New Connection-> Select SQL Database File or something then go to Advance and replace .\SQLEXPRESS with . that's all.

    if someone has any trouble regarding this so this might be the solution for you if non of things worked.

    ReplyDelete
    Replies
    1. Thanks, works like a charm....

      Delete
    2. still i can not create database. what can i do?

      Delete
  3. Thanks, It was really helpful...

    ReplyDelete
  4. Thanks. It worked just fine

    ReplyDelete
  5. Thanks. It worked just fine

    ReplyDelete
  6. Superb, that simple suggestion worked first time, all of the complicated ones from elsewhere didn't.

    Thank yoy.

    ReplyDelete
  7. Thanks !your suggestion worked..

    ReplyDelete
  8. worked. thanks! :)
    but.. what did it do?

    ReplyDelete
  9. thank you very much!
    it worked fine

    ReplyDelete
  10. Appdata doesn't appear

    ReplyDelete
  11. Wont let me modify it

    ReplyDelete
  12. Worked fine for me. Thanks

    ReplyDelete
  13. Worked well thnx

    ReplyDelete
  14. Worked for me!! THX

    ReplyDelete
  15. Gryphes, I did what you have told,but its showing the following error,

    "A network related or instance-specific error occured while establishing the connection to the SQL Server...."

    What shall I do now?

    ReplyDelete
  16. William what shall be the full path for Windows XP?

    ReplyDelete
  17. thank you very much... it worked:)

    ReplyDelete
  18. it works!
    Thanks

    ReplyDelete
  19. Worked for me! Thanks a lot! =)

    ReplyDelete
  20. Nice, thanks it worked.

    ReplyDelete
  21. Can you anybody tell me how to create database in vs 2010 project inbuilt ?

    ReplyDelete
  22. How to create .mdf database in vs 2010 ?

    ReplyDelete
  23. Thanks, It's Work successfully........

    ReplyDelete
  24. worked, thanks!!

    ReplyDelete
  25. its not working for me
    ....i have deleted the contents...bt still it is not working

    ReplyDelete
  26. There is an inclination to trust that loan specialists are fixated using a credit card scores, however this is untrue. We are cautioned about our record of loan repayment to urge us to keep up our reimbursement plans, however banks are more enthusiasm for different elements. Check Cashing San-diego

    ReplyDelete
  27. Det finns flera stora och kända omnibus online-shoppingwebbplatser som Michael Kors Väska Rea. Dessa webbplatser är alla väldigt lättillgängliga och praktiska, de erbjuder Mikael Kors Väska med alla olika märken, stilar, priser och de kan strida mot de flesta köpare.

    (Läs källa: Michael Kors Plånbok,Michael Kors Väska Rea,Michael Kors Väska)

    För tjejer som vill ha speciella, ikoniska och högkvalitativa väskor från sina favoritdesigners, är det mest direkta och effektiva sättet att hitta den nyaste, hetaste och mest speciella designen på deras officiella webbplatser.

    (Läs källa: Sac Longchamp Femme,Sac Longchamp Pas Cher, Sac Longchamp Solde)

    Det finns verkliga butiker som säljer kvällssäckar på alla ställen, till exempel varuhus, designerbutiker eller sändningsaffärer. Fördelarna med att köpa i en butik är att du kan känna påsar i alla storlekar, du kan se om färgen matchar din klänning, eller om väskans storlek och vikt passar dina behov.

    (Läs källa: Michael Kors Bolsos,Bolsos Michael Kors Outlet,Bolsos Michael Kors Rebajas)

    ReplyDelete
  28. Coach Handbags Outlet are usually viewed as luxurious brands, but yet at inexpensive price.
    Today most people looking for COACH accessories will look for them at Coach Bags Factory Outlet.
    Coach Sale are just the most inexpensive items to purchase through Coach Purses Outlet, a small change purse or Cheap Coach Purses.
    Coach Bags On Sale are a fun accessory to add to a new collection.
    Coach Bags Outlet is can be carried or slipped over your shoulder.
    Authentic MK Outlet are made of high grade quality leather and Michael Kors Factory Outlet can actually have real leather on them.
    Michael Kors Purse Sale usually come with a plate bearing the MK Outlet logo to distinguish it from other Cheap Michael Kors Purses.
    Michael Kors Outlet Online have the inherent ability to capture the essence of what women like and what they want to wear and utilize.
    Michael Kors Outlet Store are a symbol of feminine elements and speak for all kinds of women.
    Michael Kors Purses On Sale of the day vary greatly, but all seem to share one characteristic, they are popular!

    ReplyDelete
  29. "We can't wait for the fall season and the chance to roll out our lineup of distinctive, innovative new dramas and comedies, scheduled with the kind of lead in support that will give each of our new shows the optimum chance to find their audiences Coach Bags Outlet and deliver on their outstanding potential," said Jennifer Salke, President, NBC Entertainment. "The fall lineup Michael Kors Outlet Store gives you only half the story. We truly program on a 52 week basis and are putting virtually the same amount of programming muscle behind our mid season lineup, with some of the most high profile concepts and biggest Coach Outlet Clearance names on television joining the schedule starting at midseason and extending throughout the remainder of the broadcast year.".

    Priyanka Chopra is beautiful and with that I just said one of the most redundant things ever. But we all know that behind those gorgeous looks, those public appearances, there is a team of stylists and beauticians who work hard to bring the best out of her. For celebrities, looking good is MK Outlet a full time occupation as Priyanka points out to New Yeezys 2020 Bazaar, she's "literally photographed every day." And it's Cheap Ray Ban Glasses not always in a celeb's control, what with the paparazzi, the shutterbugs, the phone cameras everywhere, you never know where you will get photographed and New Jordan Shoes 2020 Coach Bags Clearance make Nike Air Force 1 Cheap Outlet it to the headlines the next day.

    ReplyDelete