Solved

sql server 2010 deleted database, restored it and now can't login error 4064

Posted on 2014-04-18
7
950 Views
Last Modified: 2014-04-18
I deleted a database and then restored it from a symantec back up.  Now I get an error message trying to open SQL server manager that says

Cannot open user default database, login failed.  Login failed for (servername ) admin. Microsoft SQL error 4604

Can anyone tell me how to fix this.  I think the datbase is corrupted even on the restored version.  SQL server 2008.
0
Comment
Question by:kdschool
[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
  • 3
  • 3
7 Comments
 
LVL 22

Expert Comment

by:plusone3055
ID: 40009156
have you first created a new login and added it to the database since the restore ??
0
 
LVL 4

Expert Comment

by:wsawalhi
ID: 40009174
Hello,

SQL SERVER – Fix : Error: 4064 – Cannot open user default database. Login failed. Login failed for user

http://blog.sqlauthority.com/2008/11/04/sql-server-fix-error-4064-cannot-open-user-default-database-login-failed-login-failed-for-user/
0
 

Author Comment

by:kdschool
ID: 40009183
I cant' get on the SQL Manager at all or see any of the databases.  Also when I tried solution 2 no databases are in the list so I hit browser for databases tyring to get to master and I get the same error message.  It won't let me browse.
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:kdschool
ID: 40009194
Everything was fine till I removed that database.
0
 
LVL 4

Accepted Solution

by:
wsawalhi earned 500 total points
ID: 40009203
0
 

Author Closing Comment

by:kdschool
ID: 40009224
Very quick and great response. Saved me.
0
 
LVL 4

Expert Comment

by:wsawalhi
ID: 40009231
You are welcome, and I'm very happy that I could help...Cheers!
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
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.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 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