Solved

DB Mail Configuration Wizard hangs & is not responding

Posted on 2013-01-03
10
555 Views
Last Modified: 2013-01-09
I've installed SQL Server 2008 R2 and applied SP1.
Tried to configure db mail but the Database Mail Configuration Wizard hangs and says "Not Responding".  

No error is thrown on-screen.  

No error in db logs in SQL Server.

Event Viewer on the server has this informational message:
"Login failed for user '<domain\user_id>'.  Reason Failed to open the explicitly specified database. [Client:<my_ip_address_here>]"

The userid given in the message is the one that both the MSSQLSERVER and SQL Server Agent services use.  SQL Server isn't having any other problems so I'm confused as to how there could be a problem with the userid.  Have no idea what "explicitly specified database" means.

Help!
0
Comment
Question by:Eric3141
  • 6
  • 3
10 Comments
 
LVL 2

Author Comment

by:Eric3141
Comment Utility
That error is in the event viewer every 1 minute so may or may not have anything to do with the db mail configuration wizard.
0
 
LVL 15

Expert Comment

by:Anuj
Comment Utility
Go to the Login properties of that user, check the default database specified, make sure that the user has access to the DB and the DB exists in the instance.
0
 
LVL 2

Author Comment

by:Eric3141
Comment Utility
Default db = master.  

This userid has sysadmin privileges, and I had already explicitly granted it db_owner on the Master db as well.  

After I had granted sysadmin and db_owner privileges to the user, I disconnected from db instance in SSMS (I had logged on with with another account) and tried to reconnect with the problem user.  I get this error:

Login failed for user'domain\my_user'.  Error 18456.

Log file shows state 38 as well.
0
 
LVL 15

Expert Comment

by:Anuj
Comment Utility
State 38 means either the default database is missing or the user is not authorized to connect to the given database. Looks odd, can you confirm you are using correctlogins?
0
 
LVL 2

Author Comment

by:Eric3141
Comment Utility
OK, I found out the userid in question is a service account & cannot log into the domain directly.  Thus failed to log into SSMS when I tried.  Howerver, the 2 services that SQL is using are using this userid and users not getting errors and can connect via their applications.  And error I gave you is showing up in the event viewer every 1 minute.

The user already had sysadmin privileges.  I then explicitly granted db_owner on the default db (master) and restarted the services.  Errors persist.  

Our other db server uses the same network service userid and has sysadmin privileges and has no problem.  That db server is SQL 2008 while the problem one is 2008 R2 SP1.

Ideas?
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 15

Expert Comment

by:Anuj
Comment Utility
Its recommended to use a domain account for running Services, can you try using this?
0
 
LVL 2

Author Comment

by:Eric3141
Comment Utility
I put my network userid as the logon for the service and the errors in event viewer went away.  Put the non-domain userid back and they returned.

This was not a problem on SQL 2008 on our stand alone box.  
New server (that I'm having this trouble with) is virtual and SQL 2008 R2.

Our network god is not going to want to approve the user of a domain account for a service as we've never done that here.  

Can you point me to documentation that says a regular domain account should be used?

Ideas on why this was not a problem with SQL 2008?

** Any idea the impact this will have if I don't change it?  Our webapp can connect to the database and I can log onto the db instance in SSMS.  Network god will ask me the impact (other than these entries in event viewer) if we don't change it.
0
 
LVL 21

Expert Comment

by:Alpesh Patel
Comment Utility
Try using the sa credentials.
0
 
LVL 2

Accepted Solution

by:
Eric3141 earned 0 total points
Comment Utility
Found the problem & resolved.

Somehow in Reporting Services Manager on the 014 db server, the location of the ReportServer db was specified to be 044 db server.  Thus the network userid used to run the SQL db services was trying to connect to the ReportServer db on 044 which does not exist because Reporting Services is not installed on that db server.  Thus the "logon failure" errors in Event Viewer on 014.

044 is a test db server.  We've not ever done anything with Reporting Services yet.  Have no idea how I managed to do this but glad I found and corrected the problem.
0
 
LVL 2

Author Closing Comment

by:Eric3141
Comment Utility
Hey guys, I would award you credit for helping but I want to add this solution to the knowledge base in case it helps others who have a similar problem.  So I had to specify my solution as the only one.

Thx again a bunch for helping.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now