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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then n@hf{hA[a  
Response.Write 错误 : & err.description & Ca&p;K9FR  
response.end S%+$  
End if YTQom!O  
End Sub 1X5*V!u  
Sub EndDB() l> Mth+ ,b  
Set objOraDB = Nothing (Wj2%*NT  
Set objOraSession = Nothing m]Sv>|  
End Sub R5y+bMZ  
Function getTableList(str) qrWeV8ur+  
Dim strSql,strTmp 4f}:)M$5  
Dim objRs d )}@0Q  
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 *=6,}rX"I  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) /7bIE!Cn  
While Not objRs.Eof fP6]z y^ *  
strA = objRs(uname) & . & objRs(tname) &oA p[]  
,>DaS(  
If str=strA then SM<kR1bo  
strTmp = strTmp & & strA & qtx5N)J6  
Else C< :F<[H  
strTmp = strTmp & & strA & U%Igj:%?;`  
End if k:+Bex$g  
objRs.MoveNext #ny&bJj  
Wend np>RxiB^  
Set objRs = Nothing 5i 6*$#OM_  
getTableList = strTmp K*ZH<@o4  
End Function LX i?FQnLu  
% > )2U#<v^  
@iW^OVpp<8  
EmaVd+Sw  
;+) M~2 =  
4. &t  
All Tables : c:a5pd7T  
{29x5J  
Xv`c@n )  
!PaDq+fB  
2EHeQ|#  
() oic}Go  
p|W <xFk  
D92#&,KD  
L4)@lmd3  
5]Wkk~a  
+2}aCoL\  
  then 2MN AY%iT  
strSql = Select * from & tblname 0(uNFyIG  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) xk1pZQ8c  
Response.Write DwQa j"1<%  
for i=0 to rs.Fields.count-1 vd4}b>  
  Response.Write & rs.fields(i).name & "S">#.L  
next J!%cHqR  
Response.Write v{R:F  
While Not Rs.Eof jh3LD6|s}  
  Response.Write 0@ -3U{Q  
  for i=0 to rs.fields.count -1 p'`SYEY@Z  
        Response.Write & Rs.Fields(i).Value &   P5:X7[  
  next `OY_v=}  
  Response.Write       hb6UyN  
  Rs.MoveNext HxC_n h  
Wend Vd8BQB,Q  
Set Rs = Nothing 8a\ Pjk  
end if 8:BPXdiK  
  % > VW7 ?{EL7  
)/'y'd<r  
e[3 rz%'Q  
(Ea)`'/  
s}~'o!}W  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

您目前还是游客,请 登录注册
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
认证码:
验证问题:
10+5=?,请输入中文答案:十五