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

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

枫
级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then q|r/%[[!o  
Response.Write 错误 : & err.description & n>5/y c"/q  
response.end >&`S$1 o  
End if m:sT)  
End Sub p2\mPFxEP  
Sub EndDB() uPvE;E_  
Set objOraDB = Nothing -$Ad#Eu]M  
Set objOraSession = Nothing }ag -J."5M  
End Sub <O]TM-h  
Function getTableList(str) GQR|t?:t  
Dim strSql,strTmp ~Wox"h}(  
Dim objRs .w@o%AO_  
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 dh; L!  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) B0&W wa:  
While Not objRs.Eof +)cjW"9  
strA = objRs(uname) & . & objRs(tname) Gfbeh %  
13lJq:bM  
If str=strA then Hyj<Fqr!.  
strTmp = strTmp & & strA & Vw P+tM  
Else <,Z6=M`  
strTmp = strTmp & & strA & $v#\bqY  
End if gTby%6- \|  
objRs.MoveNext S.Z2gFE&tu  
Wend wQnW2)9!  
Set objRs = Nothing LKx<hl$O  
getTableList = strTmp SD=kpf;  
End Function Js706  
% > [*jvvkAp  
%`F &,!d  
N-~Uu6zr  
3<L>BakD  
z;F6:aBa  
All Tables : 8=!BtMd"  
lJR  
T`?{Is['(  
V7pe|]%r  
{~lVe GBp  
() RdtF5#\z  
;rK= jz^Q  
UF$JVb  
x KZLXQ'e-  
gFx2\QV  
;YYo^9Lh}  
  then )uJu.foE  
strSql = Select * from & tblname a'U}.w}  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) T/b%,!N)  
Response.Write Z%t"~r0PS  
for i=0 to rs.Fields.count-1 D^Cpgha  
  Response.Write & rs.fields(i).name & {okx*]PIc  
next qVpV ZH!  
Response.Write F"?OLV1B&  
While Not Rs.Eof @S%ogZz*m  
  Response.Write ZjEc\{ s  
  for i=0 to rs.fields.count -1 nB#m?hK  
        Response.Write & Rs.Fields(i).Value &   :|P[u+v  
  next Tw{}Ht_Qq  
  Response.Write       v_7?Zik8E  
  Rs.MoveNext [J`%i U  
Wend ^/H9`z;  
Set Rs = Nothing Y<"BhE  
end if ;B,6v P#  
  % > n*Q~<`T  
Q=+*OQV29  
l[G&=/R@H  
h:J0d~u  
h yPVt6Gkj  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

您目前还是游客,请 登录 或 注册
欢迎提供真实交流,考虑发帖者的感受
认证码:
验证问题:
3+5=?,请输入中文答案:八 正确答案:八