求教:我想连接ORACLE数据库,但却没取到值,不知错在那里。
我写了个连接ORACLE数据库的代码,想取一字段值,但没数据返回(表中数据一定存在),不知错在哪 里,请大侠们指点:<%@ Language=VBScript %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<%
set adocon=Server.Createobject("adodb.connection")
adocon.open "Provider=OraOLEDB.Oracle;data source=132.119.69.228;user id=bsscx;password=bsscx;"
set rec1=server.createobject("adodb.recordset")
sql1="select * from tb_serv where acc_nbr='8999899'"
rec1.open sql1,adocon,3,1
response.write "acc_nbr:"&field.acc_nbr
set rec1=nothing
adocon.close
%>
<body>
</body>
</html>