How to fix error: ConnectionOpen (connect()) ?

Hi everybody !

I use Linux CentOS 4.4, SunOneChili!Soft 4.2, Apache 2.0x

When I creat DSN (use ASP) connnect to SQL server 2000, i get error :

Error Type:

ADODB.Connection.1 (0x80004005)

SQLState: 0 Native Error Code: 11 [DataDirect][ODBC SQL Server Driver][libssclient20] SQLState: 01000 Native Error Code: 111 [DataDirect][ODBC SQL Server Driver][libssclient20]ConnectionOpen (connect()).

Include/inc_DataConn.asp, line 11

Here are source code to connect:

ConnStr = "Driver={SQL Server};DSN=thuvien; Address=127.0.0.1,1433;Connect Timeout=60;Pooling=False;Max Pool Size=5;UID=sa; PWD="

set adoConn = server.CreateObject("ADODB.connection")

adoConn.ConnectionString = ConnStr

adoConn.CursorLocation = 3

'Error here

adoConn.Open ConnStr

I created DSN thuvien

Please help me to fix this error

Thank's everybody

[943 byte] By [thongtinkhcn] at [2007-11-26 11:23:38]
# 1

You might want to use a DSN instead of trying to get a direct conn from an asp page.

Speaking of your page SQL Server access, you can try modifying

/opt/casp/asp-server-3000/odbc.ini

if you see a line as SQLServer_template , change this to

MSSQLServer_template. and try restarting the asp server.

Sultal at 2007-7-7 3:39:04 > top of Java-index,Web & Directory Servers,Web Servers...
# 2
I have changed, but i still got these error !
thongtinkhcn at 2007-7-7 3:39:04 > top of Java-index,Web & Directory Servers,Web Servers...