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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then jS| 9jg:  
Response.Write 错误 : & err.description & S;I}:F#5  
response.end <e@+w6Kp'7  
End if QL`Hb p  
End Sub q jmlwVw  
Sub EndDB() *VgiJ  
Set objOraDB = Nothing C0%yGLh&  
Set objOraSession = Nothing SK;c D>)  
End Sub o==:e  
Function getTableList(str) p5\B0G<m  
Dim strSql,strTmp )lrmP(C*.a  
Dim objRs wOs t).  
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 I7e.p m  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) .FpeVjR''  
While Not objRs.Eof ?I332,,q  
strA = objRs(uname) & . & objRs(tname) T43Jgk,  
6_kv~`"tZ  
If str=strA then S<UWv@`U"  
strTmp = strTmp & & strA & -|_MC^)  
Else {>n\B~*,"C  
strTmp = strTmp & & strA & b]k9c1x  
End if M.?[Xpa  
objRs.MoveNext B6xM#)  
Wend oZ,_G,b^  
Set objRs = Nothing sA!$}W  
getTableList = strTmp 2c1L[]h'  
End Function fm1yZX?`  
% > u+5MrS [  
OV,t|  
1 paLxR5  
b .|k j  
Lv m"!!  
All Tables : xSy`VuSl  
P:&X1MC  
= 4 wf  
?Es(pwJB  
SZ(]su:  
() (]N- HN]v  
L(+I  
U;#9^<^  
omzG/)M:O  
K2 6`wt  
Zi= /w  
  then y$[:Kh,  
strSql = Select * from & tblname ;9$71E  
Set Rs = objOraDb.DbCreateDynaset(strSql,0)  HvzXAd  
Response.Write h'ik19  
for i=0 to rs.Fields.count-1 v8f1o$R  
  Response.Write & rs.fields(i).name & _=-B%m  
next Cd2A&RB  
Response.Write -+{<a!Nb  
While Not Rs.Eof U'k 0;  
  Response.Write fs\A(]`$  
  for i=0 to rs.fields.count -1 M`) /^S9  
        Response.Write & Rs.Fields(i).Value &   a]nK!;>$  
  next 1Y'NG<d _  
  Response.Write       H5>?{(m  
  Rs.MoveNext a&RH_LjM  
Wend )9i$ 1"a(  
Set Rs = Nothing MUn(ZnQy|  
end if |ya.c\}q  
  % > ohna1a^  
W`v$-o-  
@8*lqV2  
#+#^cqjZ  
AF\Jh+ynT!  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

您目前还是游客,请 登录注册
温馨提示:欢迎交流讨论,请勿纯表情、纯引用!
认证码:
验证问题:
3+5=?,请输入中文答案:八 正确答案:八