我把一個站從簡體搞到繁體里,簡體是可以用的,數據庫為SQL,但轉到繁體的服務器中就出現這個 “當物件關閉時,不允許操作!“大家幫幫忙!
CONN 文件為
<%
on error resume next
arrSql=split(Session("strSQL"),"/")
if not isempty(arrSql) and ubound(arrSql)=1 then
struser=arrSql(0)
strpwd=arrSql(1)
else
struser="sa"
strpwd=""
end if
set oConn=server.createobject("ADODB.connection")
oConn.ConnectionString ="Provider=SQLOLEDB.1;Password="& strpwd &";Persist Security Info=True;User ID="& struser &";Initial Catalog=netoa;Data Source=zlh;Connect Timeout=15"
oConn.Open
%>
[此贴子已经被作者于2006-1-16 9:03:21编辑过]