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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then &zs$x?/  
Response.Write 错误 : & err.description & DMS! a$4  
response.end n(Uyz`qE  
End if :4s1CC+@\  
End Sub _U0f=m  
Sub EndDB() 1}37Q&2  
Set objOraDB = Nothing >+waX "e  
Set objOraSession = Nothing cAy3^{3:  
End Sub _6Ha  
Function getTableList(str) 9kojLqCT  
Dim strSql,strTmp Y~Ifj,\  
Dim objRs IAEAhqp  
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 nie%eC&U  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) 2(nlJ7R  
While Not objRs.Eof :!/8 Hv  
strA = objRs(uname) & . & objRs(tname) bfO=;S]b!  
`kr?j:g  
If str=strA then ]{kPrey  
strTmp = strTmp & & strA & HqTjl4ai  
Else a6H%5N  
strTmp = strTmp & & strA & ,P Z ge  
End if  9a kH  
objRs.MoveNext x:7IIvP  
Wend 8D].MI^  
Set objRs = Nothing bi:8(Q$w:`  
getTableList = strTmp + )?J#g  
End Function E e]-qN*8  
% > B;WCTMy}  
KU;9}!#  
Q &t<Y^B  
xCKRxF  
0g\(+Qg^  
All Tables : WKU=.sY  
3~ \[7I/  
d\Zng!Z'  
vI]N^j2%  
dTtSUA|V7"  
() };g"GNy  
iI>A *,{,`  
FN; ^"H  
<t,x RBk  
ZB&6<uw  
MfQ!6zE  
  then fAmz4  
strSql = Select * from & tblname y==CT Y@  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) Bj~+WwD)QR  
Response.Write 8Eq7Sa  
for i=0 to rs.Fields.count-1 "\=U)CJ  
  Response.Write & rs.fields(i).name & "vGW2~*)  
next +"6`q;p3)  
Response.Write l(q ,<[O  
While Not Rs.Eof 4X$Qu6#i  
  Response.Write -^57oU  
  for i=0 to rs.fields.count -1 iX\X>W$P  
        Response.Write & Rs.Fields(i).Value &   d| {r5[&  
  next ,(4K4pN  
  Response.Write       M[uA@  
  Rs.MoveNext ]~nKK@Rw  
Wend :aQt;C6Z>  
Set Rs = Nothing :yjFQ9^?&  
end if ;GhNKPY  
  % > l+R+&b^  
xvy.=(  
}{"fJ3] c^  
QIgNsz  
_[y/Y\{I  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

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