2012-04-04 6 views
2

何が原因なのかわからないので、タスクマネージャのSQLプロセスでタスクを終了してからコンピュータを再起動しました。これで、SQL Server 2008 R2にログインできなくなりました。これは、ログインしようとしたときに私が取得エラーです:SQL Server 2008 R2にログインできなくなった

==================================

Cannot connect to JSMITH.

===================================

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) (.Net SqlClient Data Provider)

------------------------------ For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476

------------------------------ Error Number: 2 Severity: 20 State: 0

------------------------------ Program Location:

at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server) at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

+0

比較的最近のバージョンからSQL Server 2008 R2に移行しましたか?インプレースアップグレードまたは新規インストールでしたか? –

答えて

3

私は次のことをチェックすることをお勧め:

  1. チェックあらゆるサービス関連のためのEventLogをチェックしない場合は、SQL Serverサービスが、実行されている場合エラー。

  2. Config Managerで名前パイプが有効になっていることを確認します。代わりにTCP/IPを使用するように切り替えることもできます。 TCP/IPに切り替える場合は、SQL Server Browserサービスも有効/実行されていることを確認する必要があります。

+0

+1サービスが実行されていないことを私は賭けるでしょう... –

+0

SQLServer.exeは、プロセス内のサービスSQLWriter、SQLSERVERAGENT、SQLBrowser、SQLAgentで実行されています。$ SqlExpressは実行中です...どのサービスを探していますか? – tweetypi

1

コンピュータを再起動してください。他の誰かがサーバーに対する管理者権限を持っている場合、パスワードを変更した可能性があります。

+1

その場合、接続エラーではない認証エラーがあります。 – BluesRockAddict

+0

認証エラーは、「ユーザー 'username'のログインに失敗しました。 (Microsoft SQL Server、エラー:18456) '。 –

1

私はcommandpromptでこれを実行することで問題を解決:

net start "SQL Server (MSSQLSERVER)"

イムないサービスはしかし、Windowsの起動時に自動的に起動されなかった理由、これはそれを修正したりする理由を確認してください。

0

Services.mscを実行し、SQL Serverエージェントに移動します。サービスが実行されていない場合は、サービスを開始します。

約サービス: ジョブを実行し、SQL Serverを監視し、アラートを起動し、管理タスクの自動化を許可します。

関連する問題