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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then u;$g1 3  
Response.Write 错误 : & err.description & 4N&4TUIM  
response.end E3X6-J|  
End if 1p#O(o  
End Sub 24u;'i-y5  
Sub EndDB() 59eq"08  
Set objOraDB = Nothing yEm[C(gZ  
Set objOraSession = Nothing a#i;*J  
End Sub xE+Nz5F  
Function getTableList(str) +r0ItqkM  
Dim strSql,strTmp d^5OB8t  
Dim objRs k)+2+hX&>  
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 D@5Ud)_  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) &gdtI  
While Not objRs.Eof hq}kAv4B=  
strA = objRs(uname) & . & objRs(tname) FGzMbi<l#(  
L`>uO1O  
If str=strA then 3 K Y-+ k  
strTmp = strTmp & & strA & 4L'dV  
Else g8<Ja(J  
strTmp = strTmp & & strA & b(<#n6a}\  
End if !?t#QD o  
objRs.MoveNext 3N8RZt1.b  
Wend ".Lwq_  
Set objRs = Nothing `?Wy;5-  
getTableList = strTmp EA@p]+P  
End Function -[\+~aDH,  
% > QIZ }7  
?f{{{0$S  
tYE\tbCO'  
RRGo$  
@=@7Uu-  
All Tables : 1:2 t4}  
{FV_APL9_  
*;(wtMg  
]xhZJ~"@u  
tbbZGyg5b  
() (8bo"{zI  
\[m{&%^G  
t[L0kF9en  
|3tq.JU  
07L >@Gf  
&p/ ^A[  
  then 9 F"2$;  
strSql = Select * from & tblname Bismd21F6=  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) ZHQa}C+  
Response.Write -)S(eqq1  
for i=0 to rs.Fields.count-1 ,MH9e!  
  Response.Write & rs.fields(i).name & E038p]M!  
next &YAw~1A  
Response.Write $+#Lq.3,  
While Not Rs.Eof xx^7  
  Response.Write fU@{!;|Pz  
  for i=0 to rs.fields.count -1 ==$>M d  
        Response.Write & Rs.Fields(i).Value &   Dwvd  
  next ~_XJ v  
  Response.Write       K0681_bp  
  Rs.MoveNext :C%cnU;N  
Wend Xi^#F;@sU  
Set Rs = Nothing M oIq)5/  
end if Hzd tR  
  % > :%&~/@B  
-Re4G78%  
(%`R{Y  
6gUcoDD  
OQ,KQ\  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

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