We have an error on our SharePoint server indicating a database is out of date and needs to be upgraded however when running the psconfig command we get the error below in the logs:
[OWSTIMER] [SPUpgradeSession] [INFO] [1/16/2015 1:42:27 PM]: SecureStoreServiceDatabase Name=Secure_Store_Service_DB_94b4a3e0...
[OWSTIMER] [SPUpgradeSession] [ERROR] [1/16/2015 1:42:27 PM]: Upgrade [SecureStoreServiceDatabase Name=Secure_Store_Service_DB_94b4a3e0...] failed.
[OWSTIMER] [SPUpgradeSession] [INFO] [1/16/2015 1:42:27 PM]: SecureStoreServiceDatabase Name=Secure_Store_Service_DB_94b4a3e0...
[OWSTIMER] [SPUpgradeSession] [ERROR] [1/16/2015 1:42:27 PM]: Exception: Target string size is too small to represent the XML instance
[OWSTIMER] [SPUpgradeSession] [INFO] [1/16/2015 1:42:27 PM]: SecureStoreServiceDatabase Name=Secure_Store_Service_DB_94b4a3e0...
[OWSTIMER] [SPUpgradeSession] [ERROR] [1/16/2015 1:42:27 PM]: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.SharePoint.Utilities.SqlSession.ExecuteNonQuery(SqlCommand command)
at Microsoft.SharePoint.Upgrade.SPDatabaseSequence.Upgrade()
at Microsoft.SharePoint.Upgrade.SPUpgradeSession.Upgrade(Object o, Boolean bRecurse)
[OWSTIMER] [SPUpgradeSession] [INFO] [1/16/2015 1:42:27 PM]: No context object
[OWSTIMER] [SPUpgradeSession] [ERROR] [1/16/2015 1:42:27 PM]: Upgrade Timer job is exiting due to exception: System.Data.SqlClient.SqlException: Target string size is too small to represent the XML instance
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.SharePoint.Utilities.SqlSession.ExecuteNonQuery(SqlCommand command)
at Microsoft.SharePoint.Upgrade.SPDatabaseSequence.Upgrade()
at Microsoft.SharePoint.Upgrade.SPUpgradeSession.Upgrade(Object o, Boolean bRecurse)
at Microsoft.SharePoint.Administration.SPPersistedUpgradableObject.Upgrade(Boolean recursively)
at Microsoft.SharePoint.Upgrade.SPUpgradeSession.ReflexiveUpgrade(Object o, Boolean bRecurse)
at Microsoft.SharePoint.Upgrade.SPUpgradeSession.Upgrade(Object o, Boolean bRecurse)
at Microsoft.SharePoint.Administration.SPPersistedUpgradableObject.Upgrade(Boolean recursively)
at Microsoft.SharePoint.Upgrade.SPUpgradeSession.ReflexiveUpgrade(Object o, Boolean bRecurse)
at Microsoft.SharePoint.Upgrade.SPUpgradeSession.Upgrade(Object o, Boolean bRecurse)
at Microsoft.SharePoint.Administration.SPUpgradeJobDefinition.Execute(Guid targetInstanceId)
Command run was "PSCONFIG.EXE -cmd upgrade -inplace b2b -force -cmd applicationcontent -install
-cmd installfeatures"









