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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then 60>.ul2  
Response.Write 错误 : & err.description & 2?q(cpsN  
response.end |CFRJN-J"  
End if wq!iV |  
End Sub E%N2k|%8d_  
Sub EndDB() zZ-\a[F  
Set objOraDB = Nothing r(A.<`\   
Set objOraSession = Nothing \}0-^(9zd  
End Sub d^E [|w ;  
Function getTableList(str) 4,p;Km&  
Dim strSql,strTmp V ~{fB~  
Dim objRs DGESba\2+  
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  ;q>9W,jy  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) zCaT tb|@  
While Not objRs.Eof gb|Q%LS9R  
strA = objRs(uname) & . & objRs(tname) =n(3o$r(  
WYcA8 X/  
If str=strA then 5e8AmY8;  
strTmp = strTmp & & strA & nw:-J1kWR  
Else #'baPqdO  
strTmp = strTmp & & strA & 9LJZ-/Wq  
End if YX*x&5]lq  
objRs.MoveNext -V.d?A4"  
Wend !D^c3d  
Set objRs = Nothing J9~i%hzr  
getTableList = strTmp O[@ q%&_  
End Function 0#o/^Ah  
% > X;F8_+Np  
I^\&y(LJF  
08bJCH  
R"v 3!P  
nk"NmIf  
All Tables : V N{NA+I  
rh*sbZ68>E  
1Tp/MV/>  
$g9**b@  
k;W@LfP  
() OHr Y(I6  
x3+oAb@o/  
I?#85l{>  
Hy:V`>  
YIhm$A"z0"  
72uz<i!&$  
  then {V19Zv"j  
strSql = Select * from & tblname #SVNHpx  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) [(kB 5 a  
Response.Write CG\tQbum  
for i=0 to rs.Fields.count-1 CK+d!Eg  
  Response.Write & rs.fields(i).name & @&F@I3`{  
next {=2DqkTD  
Response.Write 2NGe C0=  
While Not Rs.Eof p/Sbt/R  
  Response.Write uQ$^;Pr  
  for i=0 to rs.fields.count -1 :'L2J  
        Response.Write & Rs.Fields(i).Value &   ? 8aaD>OR$  
  next /wShUR{  
  Response.Write       ~T7B$$  
  Rs.MoveNext WUc#)EEM)  
Wend NH<gU_s8{9  
Set Rs = Nothing ./vZe_o)j$  
end if AFvgbn8Qh  
  % > 4LcX<B U9  
RprKm'b8x`  
/'2O.d0}.  
) /vhclkb  
Dn9w@KO  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

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