Symptom: The following error is displayed when restoring an Act! database Error: "Act.Data.DatabaseAccessException: The SQL Database Service is not started. ---> Act.Data.ActDb.ActDbException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)...."
Click here for the full error message
font>
Product Details:
Product Family: Act!
Product: Premium
Version: 18
Cause: This is due to the ACT7 instance not running.
Solution:

font>
Error: "Act.Data.DatabaseAccessException: The SQL Database Service is not started. ---> Act.Data.ActDb.ActDbException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
--- End of inner exception stack trace ---
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)
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.ProviderBase.DbConnectionClosed.TryOpenConnection(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 Act.Data.ActDb.ActDbConnection.Open()
--- End of inner exception stack trace ---
at Act.Data.ActDb.ActDbConnection.Open()
at Act.Data.CommandProcessor.GetActiveConnection(String connectionString)
at Act.Data.CommandProcessor.Execute(Command command, IDataReader& dataReader)
--- End of inner exception stack trace ---
at Act.Data.CommandProcessor.Execute(Command command, IDataReader& dataReader)
at Act.Framework.Security.SessionManager.GetActAccessPassword(String host, ProviderType provider)
at Act.Framework.ActDatabase.ActDatabaseManager.ClassicRestoreDatabaseAs(String databaseName, String databaseHost, String databaseType, String newTargetFolder, String userLogOn, String userPassword, String zipFile, String zipPassword, ProgressEventHandler progressHandler, Boolean shareDatabase)
at Act.Framework.ActDatabase.ActDatabaseManager.RestoreDatabaseAs(String databaseName, String databaseHost, String databaseType, String newTargetFolder, String userLogOn, String userPassword, String zipFile, String zipPassword, SupplementalFileManager sfMgr, ProgressEventHandler progressHandler, Boolean shareDatabase)
at Act.Framework.ActFramework.RestoreDatabaseAs(String databaseName, String databaseHost, String databaseType, String newTargetFolder, String userLogOn, String userPassword, String zipFile, String zipPassword, ProgressEventHandler progressHandler, Boolean shareDatabase)
at Act.UI.MaintenanceManager.RestoreDatabaseAsTask.DoTask()"
--- End of inner exception stack trace ---
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)
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.ProviderBase.DbConnectionClosed.TryOpenConnection(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 Act.Data.ActDb.ActDbConnection.Open()
--- End of inner exception stack trace ---
at Act.Data.ActDb.ActDbConnection.Open()
at Act.Data.CommandProcessor.GetActiveConnection(String connectionString)
at Act.Data.CommandProcessor.Execute(Command command, IDataReader& dataReader)
--- End of inner exception stack trace ---
at Act.Data.CommandProcessor.Execute(Command command, IDataReader& dataReader)
at Act.Framework.Security.SessionManager.GetActAccessPassword(String host, ProviderType provider)
at Act.Framework.ActDatabase.ActDatabaseManager.ClassicRestoreDatabaseAs(String databaseName, String databaseHost, String databaseType, String newTargetFolder, String userLogOn, String userPassword, String zipFile, String zipPassword, ProgressEventHandler progressHandler, Boolean shareDatabase)
at Act.Framework.ActDatabase.ActDatabaseManager.RestoreDatabaseAs(String databaseName, String databaseHost, String databaseType, String newTargetFolder, String userLogOn, String userPassword, String zipFile, String zipPassword, SupplementalFileManager sfMgr, ProgressEventHandler progressHandler, Boolean shareDatabase)
at Act.Framework.ActFramework.RestoreDatabaseAs(String databaseName, String databaseHost, String databaseType, String newTargetFolder, String userLogOn, String userPassword, String zipFile, String zipPassword, ProgressEventHandler progressHandler, Boolean shareDatabase)
at Act.UI.MaintenanceManager.RestoreDatabaseAsTask.DoTask()"
Product Details:
Product Family: Act!
Product: Premium
Version: 18
Cause: This is due to the ACT7 instance not running.
Solution:
- Start the SQL Server ACT7 instance. For information on starting the SQL Server ACT7 instance, refer to the following knowledgebase article:
How to stop or start the Microsoft SQL Server (ACT7) instance
Answer ID How to stop or start the Microsoft SQL Server (ACT7) instance
- Attempt to restore the database again to test