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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then ~q|e];tA  
Response.Write 错误 : & err.description & >h( rd1  
response.end wfTv<WG,.E  
End if x)wt.T?eL  
End Sub K2MNaB   
Sub EndDB() p}zk&`  
Set objOraDB = Nothing g2>u]3&W  
Set objOraSession = Nothing %s :  
End Sub 6')SJ*|yS  
Function getTableList(str) "/Q(UV<d  
Dim strSql,strTmp ^W[`##,{Od  
Dim objRs fQ_8{=<-&X  
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 7`<? f O  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) BCZnF /Zo  
While Not objRs.Eof -&D6w9w  
strA = objRs(uname) & . & objRs(tname) s i.a]k/f  
-XIvj'u  
If str=strA then vfTG*jG  
strTmp = strTmp & & strA & {#M{~  
Else d4h(F,K7V  
strTmp = strTmp & & strA & Y9y*" :&%  
End if 5qfKV&D  
objRs.MoveNext -t'oW*kdL  
Wend |Pl{Oo+  
Set objRs = Nothing xWb?i6)z&  
getTableList = strTmp E^W*'D  
End Function d]~1.i  
% > Wc;D{p?Lb  
7.rZ%1N  
>t2)Z|1  
U9sub6w6  
/_\W*@ E  
All Tables : Sz@?%PnU|  
%_O>Hy|p  
u N0fWj]  
g@f/OsR76  
?o5#Ve$-X  
() x)Kh _G  
vm}.gQ  
,,wx197XeD  
;OqLNfU3y  
f|1FqL+T]  
Dohe(\C@  
  then 1Klu]J%  
strSql = Select * from & tblname l<_mag/j9o  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) VZ@@j[F(  
Response.Write sn`?Foh  
for i=0 to rs.Fields.count-1 g7f%(W 2dd  
  Response.Write & rs.fields(i).name & xi=uXxl  
next )?y"NVc*  
Response.Write ;K-t  
While Not Rs.Eof , )3+hnFY  
  Response.Write 8@ g D03  
  for i=0 to rs.fields.count -1 IFoN<<7/2$  
        Response.Write & Rs.Fields(i).Value &   )X$n'E  
  next oYx f((x  
  Response.Write       dh`A(B{hfc  
  Rs.MoveNext x l=|]8w  
Wend -z1o~~  
Set Rs = Nothing gipRVd*TA  
end if !`E2O*g  
  % > Y %8QFM  
{'aqOlw3<j  
)d Dmq  
W7> _nK+g?  
vtjG&0GSK  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

您目前还是游客,请 登录注册
如果您在写长篇帖子又不马上发表,建议存为草稿
认证码:
验证问题:
3+5=?,请输入中文答案:八 正确答案:八