World Of Webmaster
Đăng nhập / Đăng ký
Account
Free for web
Check pagerank
Input check pager (Not http://)

Ext: blog.kai.vn
Check google pagerank
View HTML source
FUNCTION LIBRARY
HTML Tags Library
PHP Functions Library ASP Functions Library
ASP Functions Procedures
Chức năng: Trả về một mảng chứa toàn bộ thủ tục có trong một DB
Ngôn ngữ: asp - Nhóm: database
CÚ PHÁP
 array = Procedures(connstring) 

Hàm Procedures trả về một mảng chứa tên của tất cả các thủ tục có trong một DB.
Đối số connstring là một OLE DB đang được kết nối.

VÍ DỤ
<%
  dim i, ar, cn
  
    cn =     "Provider=Microsoft.Jet.OLEDB.4.0;" & _
      "Data  Source=" & server.mappath("/database/mydata.mdb") & ";"
  
    ar = Procedures(cn)
  
  for i = 0 to ubound(ar) - 1
       '--- write each  procedure name to the browser
      response.write ar(i) & "<BR>"
  next
%> 
ASP Code
<%
  Private Function Procedures(byval connstring)
      Dim adox, i, strProcs
      Set adox = Server.CreateObject("ADOX.Catalog")
      adox.ActiveConnection = connstring
      for i = 0 to adox.procedures.count - 1
          strProcs = strProcs & adox.procedures(i).name & vbCrLf
      next
      Set adox = nothing
      Procedures = Split( strProcs, vbCrLf )
  End Function '--- Procedures
%> 

CompactDB
DateDB
EscapeApos
EscapeBit
EscapeDate
EscapeInt
MkDatabase
NoSQLInjection
RecordCount
RecordCount2
Library ›› HTML Tag | PHP Function | ASP Function
Page : 806728
Online :
Visited : 370053
 
Liên h | Thêm vào Favorite | Gửi link qua e-mail | Thông tin website
Copright © 2009 KAI Blog
Code by BOINGOnline. Contact email : contact@kai.vn
Theme: default | classic |