

The new 2008 server is a clone from a template created in vmware. Then why does the very same account work perfectlyįine on the same server in all the databases that it's been permissioned for? This, as far as I know, is a problem resolving the login details against AD. I query sys.dm_os_ring_buffers and I can see several RING_BUFFER_SECURITY_ERROR errors, with ErrorCode: 0x534, APIName: LookupAccountSID. Resolution: First if this message is caused by SQL Agent Job connection then we will need to check the source SQL server agent service account name from Services MMC or Server manager or SQL Server Cofiguration Manager in Services-> Go to the SQL Server Agent Service > properties > Check the logon tab where we can find the account name. I get this error even if I give the give the domain account sysadmin privileges on this box (which it doesn't have normally). Reason : Failed to open the explicitly specified database Error : 18456, Severity : 14, State : 38 Login failed for user 'MYDOMAIN\MYACCOUNT'. Error: 18456, Severity: 14, State: 38 Reason: Failed to open the explicitly specified database. The problem is, I am getting the following error in the SQL Server Error log: I then ran the following: ALTER USER WITH LOGIN = I used sp_help_revlogin to get the logins from 2005 server to the 2008 R2 server. I am 100% confident that all databases are present and accounted for. Login failed for user ‘SomeDomain\RUSHTONT’.I've just moved all my SQL Server 2005 databases to a SQL Server 2008 R2 server within the same domain. (Microsoft SQL Server, Error: 0)Ĭannot open database “Test73” requested by the login. Increase the value of ConnectRetr圜ount to increase the number of recovery attempts.
#Sql error 18456 state 38 driver
The client driver attempted to recover the connection one or more times and all attempts failed. sqlcmd -S devsqlsql2,1433 -d lattice Msg 18456, Level 14, State 1, Server DEVSQL, Line 1 Login failed for user BITZERDEVacpservice. The connection is broken and recovery is not possible.

TITLE: Microsoft SQL Server Management Studio
#Sql error 18456 state 38 windows
Now go back to the second query window, and hit F5 to refresh / rerun the batch. Now that you are logged into Windows with an account that has access to connect to SQL Server, Let’s go in and grant rights to the user that you want to The generic message Login Failed for User (Microsoft SQL Server, Error: 18456) means you entered invalid credentials when logging into SQL Server.

Make a note of that SPID, and feed it into the following SQL that you run in the first window: In another query window, run the following: That, combined with the error state 38 – Failed to open the explicitly specified database – led me to think that a connection had been dropped and the database dropped or made otherwise unavailable before the user tried to reopen the query session.
#Sql error 18456 state 38 full
The full text of the error in the SQL Server event log is “Failed to open the database ” configured in the session recovery object while recovering the connection”. Reason: Failed to open the explicitly specified database 'tpcc'. Reason: Failed to open the database 'tpcc' configured in the session recovery object while recovering the connection. 23:16:47.690 spid52 Setting database option SINGLE_USER to ON for database for 'tpcc'. However, some searching did find a link to what appears to be some in-depth VMWare VSAN training documentation that includes that error in some logging information, which made me wonder if it was related to the error 18456 state 38 that followed. You wont find more information in the SQL Server logs that can help you find out who or what is trying to open that connection. Even Aaron Bertrand’s list of causes of state codes for SQL Server error 18456 missed this one. SQL Server just rejected the connection and as far as SQL Server is concerned that is the end of it.

Google seemed remarkably quiet on the subject of that particular state code. Summary of the question “ I have error 18456 State 73 – why?” A question asked on one of the forums today wasn’t easily answerable by Googling.
