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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then ' v\L @"  
Response.Write 错误 : & err.description & /v/C<]  
response.end W-.pmU e2  
End if {}QB|IH`  
End Sub -S$1Yn  
Sub EndDB() 8me ]JRw  
Set objOraDB = Nothing $&<uT  
Set objOraSession = Nothing j'aHF#_  
End Sub +V{7")px6  
Function getTableList(str) 8E4mA5@   
Dim strSql,strTmp `2`\]X_A{  
Dim objRs E\IlF 6  
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 !'j?.F $}  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) K-f1{ 0  
While Not objRs.Eof +,yK;^b  
strA = objRs(uname) & . & objRs(tname) zoDH` h_  
.Wq@gV  
If str=strA then K"b`#xN(t  
strTmp = strTmp & & strA & ZR$'u%+g'  
Else 1fo U  
strTmp = strTmp & & strA & rp6q?3=g  
End if +&Hr4@pgW  
objRs.MoveNext jMbC Y07v  
Wend 6gT5O]]#o  
Set objRs = Nothing Pl<; [cB  
getTableList = strTmp u{FDdR9<  
End Function cuK,X!O  
% > zCOgBT~p   
,SQZD,3v4  
YKbaf(K )9  
P%#*-zCCx  
'Fs)Rx}\0  
All Tables : KAsS [  
ovwQ2TuK  
GEEW?8  
u$D*tqxG  
(u]N  
() MB%Q WU  
\~ BDm  
iSFuT7; %  
LY[~Os W  
xGU(n _Y  
l3Lyea:  
  then S a4W`  
strSql = Select * from & tblname kN%MP 6?J  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) hzI|A~MFB  
Response.Write A<6%r7&B'  
for i=0 to rs.Fields.count-1 q~@]W=  
  Response.Write & rs.fields(i).name & 52. >+GC  
next S.Z9$k%   
Response.Write n.sbr  
While Not Rs.Eof fM #7y [  
  Response.Write  .AYj'Y  
  for i=0 to rs.fields.count -1 @"Z7nJX  
        Response.Write & Rs.Fields(i).Value &   3SSm5{197  
  next .e'eE  
  Response.Write       dB+N\HBY  
  Rs.MoveNext n!')wIk  
Wend w~#nYM=fP!  
Set Rs = Nothing -tnQCwq#  
end if BW"&6t#kA  
  % > dgDy5{_  
xl"HotsX-x  
8)kLV_+%  
7},)]da>,'  
w=|GJ 0  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

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