社区应用 最新帖子 精华区 社区服务 会员列表 统计排行 社区论坛任务 迷你宠物
  • 3477阅读
  • 0回复

asp下用OracleInProcServer完成对Oracle的连接和操作

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then Tl6%z9rY@  
Response.Write 错误 : & err.description & K\v1o  
response.end 3XjM@D  
End if hlWTsi4N  
End Sub Xkk m~sM6  
Sub EndDB() eYLeytF]Uy  
Set objOraDB = Nothing X!Xl  
Set objOraSession = Nothing ?KDI'>"-v  
End Sub R-+k>_96|  
Function getTableList(str) X!KjRP\\  
Dim strSql,strTmp sluR @[l  
Dim objRs l:5x*QSX  
strSql = Select at.table_name as tname,au.username as uname from all_tables at,all_users au Where au.username=at.owner order by au.username *"2TT})   
Set objRs = objOraDb.DbCreateDynaset(strSql,0) l_Mi'}j  
While Not objRs.Eof .gh3"  
strA = objRs(uname) & . & objRs(tname) L}7c{6!F7  
-SnP+X!  
If str=strA then n.Iu|,?q  
strTmp = strTmp & & strA & <05\  
Else ^NKB  
strTmp = strTmp & & strA & *_ {w0U)  
End if tG+ E'OP  
objRs.MoveNext )o-rg  
Wend $y S7u  
Set objRs = Nothing R s_bM@  
getTableList = strTmp `VM@-;@w  
End Function 481J=8H  
% > S4508l  
YtI 2Vr/9  
_1S^A0ft  
`uo'w:Q  
G'T/I\tB  
All Tables : SO^:6GuJ  
o*& D;  
H48`z'o  
$\h\, N$y  
zcnp?%  
() [x Xa3W  
="hh=x.5J  
R`sU5:n  
>jMq-#*4  
hY X H9:  
aVcQ  
  then \W Kly  
strSql = Select * from & tblname xrd@GTaI  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) {W*_^>;K  
Response.Write H.cN(7LXm  
for i=0 to rs.Fields.count-1 xO"fg9a  
  Response.Write & rs.fields(i).name & gI a/sD2m>  
next ASME~]]?  
Response.Write c~bi ~ f  
While Not Rs.Eof 7/%{7q3G>  
  Response.Write oju)8H1o#  
  for i=0 to rs.fields.count -1 X;25G  
        Response.Write & Rs.Fields(i).Value &   x@/ N9*  
  next h.+{cOA;n  
  Response.Write       No#1Ikw  
  Rs.MoveNext ,5J-C!C  
Wend rjqQWfShY  
Set Rs = Nothing X+2aP'D  
end if r6k0=6i  
  % > n%GlO KC  
p(dJf&D  
*;b.x"  
z9OhY]PPF  
/3`#ldb%}  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

引用
想找我?如果我即不在 石家庄经济学院论坛www.uebbs.net,也不在宿舍,那,我肯定是在去的路上

引用
描述
快速回复

您目前还是游客,请 登录注册
批量上传需要先选择文件,再选择上传
认证码:
验证问题:
3+5=?,请输入中文答案:八 正确答案:八