Array ( [0] => Array ( [0] => 08001 [SQLSTATE] => 08001 [1] => 26 [code] => 26 [2] => [Microsoft][ODBC Driver 11 for SQL Server]Client unable to establish connection because an error was encountered during handshakes before login. Common causes include client attempting to connect to an unsupported version of SQL Server, server too busy to accept new connections or a resource limitation (memory or maximum allowed connections) on the server. [message] => [Microsoft][ODBC Driver 11 for SQL Server]Client unable to establish connection because an error was encountered during handshakes before login. Common causes include client attempting to connect to an unsupported version of SQL Server, server too busy to accept new connections or a resource limitation (memory or maximum allowed connections) on the server. ) [1] => Array ( [0] => 08001 [SQLSTATE] => 08001 [1] => 10054 [code] => 10054 [2] => [Microsoft][ODBC Driver 11 for SQL Server]TCP Provider: An existing connection was forcibly closed by the remote host. [message] => [Microsoft][ODBC Driver 11 for SQL Server]TCP Provider: An existing connection was forcibly closed by the remote host. ) [2] => Array ( [0] => 08001 [SQLSTATE] => 08001 [1] => 26 [code] => 26 [2] => [Microsoft][ODBC Driver 11 for SQL Server]Client unable to establish connection [message] => [Microsoft][ODBC Driver 11 for SQL Server]Client unable to establish connection ) [3] => Array ( [0] => 08001 [SQLSTATE] => 08001 [1] => 10054 [code] => 10054 [2] => [Microsoft][ODBC Driver 11 for SQL Server]Client unable to establish connection due to prelogin failure [message] => [Microsoft][ODBC Driver 11 for SQL Server]Client unable to establish connection due to prelogin failure ) )
ซึ่งผม ก็ลองทำ อีกแบบ โดยใช้ ODBC เชื่อมสามารถเชื่อมได้ ครับ เเต่พอไปวางในเครื่องปล่อยเว็บ
ใส่ odbc ในช่อง User DNS
เเจ้ง Error แบบนี้ครับ
Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002
พอใส่ OCBC ไปในช่อง System
เเจ้ง Error แบบนี้ครับ
odbc_connect(): SQL error: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application, SQL state IM014