Cannot open user default database. Login failed. After upgraded to window 8.1

Posted on 2013-12-29
Last Modified: 2014-02-06
My local database connection was all okay until i upgraded to window 8.1. I'm using web developer 2008 express and SQL Server 2008 R2.

The error as attached. Been trying to seach for solution, but to no avail. Please help :(
Question by:tangteng78
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39744885
No attachment.

Author Comment

ID: 39744897
Sorry Dave. Did you missed out anything? As i can't see any comment.
LVL 69

Expert Comment

ID: 39744898
Dave wanted to tell you that WE are missing the attachment containing the error message here.
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.


Author Comment

ID: 39744899
Ohh...sorry guys. There you go.
LVL 69

Expert Comment

ID: 39744914
From which OS did you upgrade? You might have to reapply the security settings of your local MSSQL server.

Author Comment

ID: 39744923
From window 8.0 to 8.1

How do i reapply the security setting of the MSSQL server?
LVL 69

Expert Comment

ID: 39744946
If only I knew ... 8.0 to 8.1 should not have that effect, but maybe it is because the Microsoft Online accounts are more tightly integrated now.
If noone comes up with a better idea, you can do a repair install of MSSQL. That way you will fix authentication issues, but there might be a more direct way.
LVL 69

Accepted Solution

Scott Pletcher earned 500 total points
ID: 39746879
Make sure the default db for that login is set and that it actually exists.

--NOTE: this code only works if this is a Windows User login, NOT a Windows Group login.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS SQL Sever Import/export problem 7 48
Convert VBA UDF to SQl SERVER UDF 4 50
T-SQL: Stored Procedure Syntax 3 33
SQL 2014 missing dll from Bin? 3 33
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question