SQL SERVER2000客户端联服务器时提示出错SECDoClientHandshake()这是什么意思?

时间:2021-10-04 07:16:46
SQL SERVER2000客户端联服务器时提示出错
"server SSL -安全错误.ConnectionOpen(SECDoClientHandshake())"这是什么意思怎么办

6 个解决方案

#1



解决方法:
Based on my experience to offer a priliminary actions to it, if you are 
not intend to implement the SSL, you could open your SQL Server Network 
Utility and uncheck the 'force protocol encryption' and on the client side 
you want to connect from and the server side, open the Client Network 
Utility and uncheck the 'Force protocol encryption'. You could skip the 
certificate by adding the following Registry key: 
For a Default Instance 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\SuperSocketNet 
Lib REG_SZ Certificate = 0 
For a Named Instance 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\instance 
name\MSSQLServer\SuperSocketNetLib REG_SZ Certificate = 0 
Stop, and then start the SQL Server service. 


官方的解释:
http://support.microsoft.com/kb/322144/

#2


Allocating a Connection Handle
Before the application can connect to a data source or driver, it must allocate a connection handle. This is done by calling SQLAllocHandle with the HandleType parameter set to SQL_HANDLE_DBC and InputHandle pointing to an initialized environment handle.

The characteristics of the connection are controlled by setting connection attributes. For example, because transactions occur at the connection level, the transaction isolation level is a connection attribute. Similarly, the login time-out, or number of seconds to wait while trying to connect before timing out, is a connection attribute.

Connection attributes are set with SQLSetConnectAttr, and their current settings are retrieved with SQLGetConnectAttr. If SQLSetConnectAttr is called before a connection is attempted, the ODBC Driver Manager stores the attributes in its connection structure and sets them in the driver as part of the connection process. Some connection attributes must be set before the application attempts to connect; others can be set after the connection has completed. For example, SQL_ATTR_ODBC_CURSORS must be set before a connection is made, but SQL_ATTR_AUTOCOMMIT can be set after connecting.

Applications running against Microsoft® SQL Server™ version 6.0 or later can sometimes improve their performance by resetting the Tabular Data Stream (TDS) network packet size. The default packet size is set at the server, at 4 KB. A packet size of 4 KB to 8 KB generally gives the best performance. If testing shows that it performs better with a different packet size, the application can reset the packet size. ODBC applications can do this before connecting by calling SQLSetConnectionAttr with the SQL_ATTR_PACKET_SIZE option. Some applications perform better with a larger packet size, but performance improvements are generally minimal for packet sizes larger than 8 KB.

The SQL Server ODBC driver has a number of extended connection attributes that an application can use to increase its functionality. Some of these attributes control the same options that can be specified in data sources and used to override whatever option is set in a data source. For example, if an application uses quoted identifiers, it can set the driver-specific attribute SQL_COPT_SS_QUOTED_IDENT to SQL_QI_ON to ensure this option is always set regardless of the setting in any data source.

#3


FIX: SECDoClientHandShake Cannot Connect to SQL Server
http://support.microsoft.com/kb/322144/

安装最新的MDAC组件

#4


MDAC 2.8&sp1

http://www.microsoft.com/downloads/details.aspx?FamilyID=78cac895-efc2-4f8e-a9e0-3a1afbd5922e&DisplayLang=en

#5


我下载安装了MDAC2.8$SP1,但还是一样的错误,有点怪我的是98系统,联其它的电脑的SQL服务器都可以,唯独我服务器(win2000 server)上的SQL服务器不能联接,但WIN2000SERVER可以联我98的SQL服务器。郁闷死了

#6


幫樓主頂
不太清楚這方面的

#1



解决方法:
Based on my experience to offer a priliminary actions to it, if you are 
not intend to implement the SSL, you could open your SQL Server Network 
Utility and uncheck the 'force protocol encryption' and on the client side 
you want to connect from and the server side, open the Client Network 
Utility and uncheck the 'Force protocol encryption'. You could skip the 
certificate by adding the following Registry key: 
For a Default Instance 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\SuperSocketNet 
Lib REG_SZ Certificate = 0 
For a Named Instance 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\instance 
name\MSSQLServer\SuperSocketNetLib REG_SZ Certificate = 0 
Stop, and then start the SQL Server service. 


官方的解释:
http://support.microsoft.com/kb/322144/

#2


Allocating a Connection Handle
Before the application can connect to a data source or driver, it must allocate a connection handle. This is done by calling SQLAllocHandle with the HandleType parameter set to SQL_HANDLE_DBC and InputHandle pointing to an initialized environment handle.

The characteristics of the connection are controlled by setting connection attributes. For example, because transactions occur at the connection level, the transaction isolation level is a connection attribute. Similarly, the login time-out, or number of seconds to wait while trying to connect before timing out, is a connection attribute.

Connection attributes are set with SQLSetConnectAttr, and their current settings are retrieved with SQLGetConnectAttr. If SQLSetConnectAttr is called before a connection is attempted, the ODBC Driver Manager stores the attributes in its connection structure and sets them in the driver as part of the connection process. Some connection attributes must be set before the application attempts to connect; others can be set after the connection has completed. For example, SQL_ATTR_ODBC_CURSORS must be set before a connection is made, but SQL_ATTR_AUTOCOMMIT can be set after connecting.

Applications running against Microsoft® SQL Server™ version 6.0 or later can sometimes improve their performance by resetting the Tabular Data Stream (TDS) network packet size. The default packet size is set at the server, at 4 KB. A packet size of 4 KB to 8 KB generally gives the best performance. If testing shows that it performs better with a different packet size, the application can reset the packet size. ODBC applications can do this before connecting by calling SQLSetConnectionAttr with the SQL_ATTR_PACKET_SIZE option. Some applications perform better with a larger packet size, but performance improvements are generally minimal for packet sizes larger than 8 KB.

The SQL Server ODBC driver has a number of extended connection attributes that an application can use to increase its functionality. Some of these attributes control the same options that can be specified in data sources and used to override whatever option is set in a data source. For example, if an application uses quoted identifiers, it can set the driver-specific attribute SQL_COPT_SS_QUOTED_IDENT to SQL_QI_ON to ensure this option is always set regardless of the setting in any data source.

#3


FIX: SECDoClientHandShake Cannot Connect to SQL Server
http://support.microsoft.com/kb/322144/

安装最新的MDAC组件

#4


MDAC 2.8&sp1

http://www.microsoft.com/downloads/details.aspx?FamilyID=78cac895-efc2-4f8e-a9e0-3a1afbd5922e&DisplayLang=en

#5


我下载安装了MDAC2.8$SP1,但还是一样的错误,有点怪我的是98系统,联其它的电脑的SQL服务器都可以,唯独我服务器(win2000 server)上的SQL服务器不能联接,但WIN2000SERVER可以联我98的SQL服务器。郁闷死了

#6


幫樓主頂
不太清楚這方面的