An Unexpected error has occured

Vivardhan Reddy Vedium 0 Reputation points
2023-01-27T11:56:33.8933333+00:00
System.Data.SqlClient.SqlException (0x80131904): Cannot open database "dga1app20rescs_RS_BlankTemp" requested by the login. The login failed.
Login failed for user 'sa'.
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at Respond.Shared.Database.Shared.SqlDatabase.ExecuteReader(DbCommand command)
   at CdcSoftware.Respond.Configuration.DataAccess.DataAccessBase.ExecuteReader(DbCommand dbCommand)
   at CdcSoftware.Respond.Configuration.DataAccess.LicenseDA.LoadAllLicenseFeatures()
   at CdcSoftware.Respond.Configuration.DataAccess.SqlServer.SqlLicenseDA.LoadAllLicenseFeatures()
ClientConnectionId:8539937c-e9b8-4836-9a68-289e3c4d2a87
Error Number:4060,State:1,Class:11
Microsoft Configuration Manager
{count} votes

3 answers

Sort by: Most helpful
  1. Olaf Helper 40,816 Reputation points
    2023-01-27T12:11:48.3533333+00:00

    Error Number:4060,State:1,Class:11

    Error Number 4060 = "Cannot open database "dga1app20rescs_RS_BlankTemp" requested by the login."

    As the message says, either the credentials are wrong or that database don't exists on th SQL Server you are connecting to.


  2. Dan Guzman 9,206 Reputation points
    2023-01-28T03:15:19.44+00:00

    Check the SQL Server error log for additional messages as to why the specified database could not be opened.

    0 comments No comments

  3. Garth Jones 1,351 Reputation points
    2023-02-01T11:08:45.5366667+00:00

    you should post this to a sql tag, configmgr is the wrong tag for this issue.

    0 comments No comments