Frog Frog Recommendation: VBS database operation class,

zhaozj2021-02-16  105

Frog Frog Recommendation: VBS Database Operation Class, this class realizes the usual main database operation, because we are dealing with the database every day, sometimes it is very convenient to use such a class, but I don't know how practicality, because There are not many considerations in performance and error handling, so I don't know how it is very. If anyone can give this class plus dynamic error handling or optimize performance, it is more perfect .ps: Do this class is also practice the use VBS class. <% class classado Private conn_c Private rs_c Public strconn Private Sub Class_Initialize 'definition of the class initialization event set conn_c = Server.CreateObject ( "ADODB.Connection") End Sub Private Sub Class_Terminate' set Terminate event. RS_C.Close set rs_c = Nothing conn_c.close set conn_c = Nothing end SUB

Public Function OpenDB () 'Opens Database IF ISEMPTY (STRCONN) THEN Response.write ("