Client can't connect to SQL server ,but the program still work(SQLSERVER 2005 enterprise edtion)

  • THE SQL server LOGIN error message:

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

    cannt connect to server server_name。

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

    connect to the server succssfull,but error occured during the login period。 (provider: the shared memory program, error: 0 - there is no thread on the other side of the pipeline。) (.Net SqlClient Data Provider)

    ------------------------------

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

    ------------------------------

    server name: server_name

    error number: 233

    seriousness : 20

    state: 0

    ------------------------------

    location:

    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)

    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)

    at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)

    at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)

    at System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected)

    at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()

    at System.Data.SqlClient.TdsParserStateObject.ReadByte()

    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)

    at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)

    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.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server)

    at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

    when i restart the SQLserver service,everyting will ok,but after some days ,will happen again,

    eager to know how to do !

    thanks for your advice!

  • Hello,

    May be take a look at the following article, especially to see if one of the comments relates to your particular scenario:-

    http://blogs.msdn.com/sql_protocols/archive/2006/07/26/678596.aspx

    Regards,

    John Marsh

    www.sql.lu
    SQL Server Luxembourg User Group

  • Are you still facing the problem?

    Whats the service pack you are using?

  • my sp is sp3.thank you.

  • Are you by any chance using AD?

    I think I have encountered this error a long tome ago. If I remember correctly we had an AD group whose users where granted right on the SQL box. During Logon / Authentication if the AD was unavailable or took time to respond we had this error. We got around it by setting SQL server to authenticate using SQL and Windows. Then creating SQL users with specific rights. And using only these SQL users in our web.config connection strings. Interactive users still continued under Windows Authentication.

  • Now ,i think ,it is the program of client caused this problem :because ,I have 3 DBserver with the same configuration ,

    only one will occur which client program is different from the others,and when this happen,the DBserver can't reach any

    machine with telnet ,the port 1433 or 80 will both report error message(connt open the connection,at port ...),when restart the DB server ,the error will disappear.

  • please check is there any application configured with same port?

    stop all applications and services.

    start sql server.

    this will permit sql server to take control over port 1433.

    Manoj

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply