Class Cls_DB
Private ConnStr
Private DBpath
==============================
函 數 名
作 用
參 數
==============================
Private Sub DB_Conn()
On Error Resume Next
Set Conn = Server
ConnStr="Provider=Microsoft
Conn
If Err Then
Call AspErr()
End If
End Sub
==============================
函 數 名
作 用
參 數
==============================
Public Sub DB_Open()
Call DB_Conn()
Set Rs=Server
End Sub
==============================
函 數 名
作 用
參 數
==============================
Public Sub DB_Close()
Set Rs=Nothing
If IsObject(Conn) Then Conn
Set Conn = Nothing
End Sub
=============================
函 數 名
作 用
參 數
=============================
Private Sub AspErr()
DBLink = Request
DBLink = Split(DBLink
For DBi =
DBpath = DBpath&DBLink(DBi)&"/"
Next
Response
Response
Response
Response
Response
Err
Response
End Sub
End Class
From:http://tw.wingwit.com/Article/program/net/201311/14028.html