?
Solved

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

Posted on 2013-12-29
8
Medium Priority
?
372 Views
Last Modified: 2014-02-06
Hi,
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 :(
0
Comment
Question by:tangteng78
[X]
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
8 Comments
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 39744885
No attachment.
0
 

Author Comment

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

Expert Comment

by:Qlemo
ID: 39744898
Dave wanted to tell you that WE are missing the attachment containing the error message here.
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

Author Comment

by:tangteng78
ID: 39744899
Ohh...sorry guys. There you go.
login-failed.jpg
0
 
LVL 70

Expert Comment

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

Author Comment

by:tangteng78
ID: 39744923
From window 8.0 to 8.1

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

Expert Comment

by:Qlemo
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.
0
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 2000 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.
ALTER LOGIN [Ethan\EngTeng] WITH DEFAULT_DATABASE = master
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

764 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