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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then #K7i<Bf  
Response.Write 错误 : & err.description & u[U~`*i*rA  
response.end 8w|j Z@  
End if xZ@H{):  
End Sub \n850PS  
Sub EndDB() $ 8w eh3p  
Set objOraDB = Nothing =JyYU*G4  
Set objOraSession = Nothing )2oWoZ vi9  
End Sub |xH"Xvp:  
Function getTableList(str) DR9M8E  
Dim strSql,strTmp M[_~7~4  
Dim objRs xIF z@9+k  
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 zQ {g~x  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) GI$t8{M  
While Not objRs.Eof ',0~\V  
strA = objRs(uname) & . & objRs(tname) )BTJs)E  
]}9y>+>  
If str=strA then #;H,`r  
strTmp = strTmp & & strA & `QR2!W70o3  
Else N_L&!%s  
strTmp = strTmp & & strA & Bh*~I_Ta>  
End if wC BL1[~C  
objRs.MoveNext UTUIL D  
Wend }se)=7d8 Z  
Set objRs = Nothing #hd<5+$U}l  
getTableList = strTmp JBE'B Q@  
End Function /,5`#Gte_  
% > 2 < &-  
eEn_aX  
bm1ngI1oI  
V#!ypX]AB[  
g_] u<8&  
All Tables : )?pin|_x  
hzPx8sO  
X3]E8)645N  
|.:O$/ Tt[  
)1j~(C)E8  
() }QncTw0  
5"y p|Yl  
S#+G?I3w  
K4n1#]8i  
&tD`~  
;k7` `  
  then ]Vl5v5_  
strSql = Select * from & tblname Ats"iV  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) g$dL5N7  
Response.Write Ph]e\  
for i=0 to rs.Fields.count-1 7^KQQ([  
  Response.Write & rs.fields(i).name & $EviGZFAaR  
next -ihF)^"a  
Response.Write )dF(5,y)  
While Not Rs.Eof A>>@&c:(  
  Response.Write P>pkLP} Vo  
  for i=0 to rs.fields.count -1 R_vZh|  
        Response.Write & Rs.Fields(i).Value &   ) 0AE*S  
  next 'QT(TF>  
  Response.Write       7!oqn'#>A  
  Rs.MoveNext =oT@h 9VI  
Wend r'&9'rir2  
Set Rs = Nothing 9aZ3W<N`M  
end if kc8GnKM&mc  
  % > 6{azzk8  
K^{`8E&A  
Yc?taL)  
_gC<%6#V`r  
EemKYcE@Nr  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

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