A CLASS OF DB BY ASP
来源:互联网 发布:珠穆朗玛软件下载 编辑:程序博客网 时间:2024/05/17 20:31
<%
CLASS DB
Private conStr,asqlStr
Public Property Let ConnectStr(byval aValue)
conStr=aValue
End Property
Public Property Get ConnectStr()
ConnectStr=conStr
End Property
Public Property Let sqlStr(byval aValue)
asqlStr=aValue
End Property
Public Property Get sqlStr()
sqlStr=asqlStr
End Property
Public Function GetRecords()
dim Conn,Cmd
SET Conn=Server.CreateObject("Adodb.Connection")
SET Cmd=Server.CreateObject("Adodb.Command")
On Error Resume Next
Conn.Open conStr
Cmd.CommandText=asqlStr
Cmd.ActiveConnection=Conn
Conn.CursorLocation=3
Conn.BeginTrans
SET GetRecords=Cmd.Execute() //Dont return a Record
if Err.Number=0 then
Conn.CommitTrans
else
Conn.RollbackTrans
end if
End Function
End CLASS
%>
- A CLASS OF DB BY ASP
- Caused by: java.lang.IllegalAccessException: Class ognl.OgnlRuntime can not access a member of class
- Caused by: java.lang.IllegalAccessException: Class ognl.OgnlRuntime can not access a member of class
- pesudo-class of <a> element
- How to start a DB job by batch file
- ActionScript 3 : Get a Class Reference by Class Name
- asp jscript 调用 asp vbscript class/类, by shawl.qiu
- a error of hibernate by newbies
- Tessellation of sphere by a recursive method
- Determining the Size of a Class Object
- member function of a drived class(10.27)
- The structure of a class file
- Determining the Size of a Class Object
- Controlling Access to Members of a Class
- a partial OTcl class hierarchy of NS
- Determining the Size of a Class Object
- a c++ program of derived class
- Controlling Access to Members of a Class
- 获取表单对象,得三种方法getElementById(), getElementsByName(), and getElementsByTagName() 和用法
- java 数字格式化
- 欧拉函数
- 十二章 类————返回自身类型的引用*this const
- Windows Vista UAC: 如何创建低权限令牌
- A CLASS OF DB BY ASP
- 省份城市级联的js文件(不带县)
- 关于自动内存管理(下)
- java基础知识:KVM的扩展
- 加快Bloghelper的开发
- Struts常见异常信息和解决方法
- 使用Java5特性来简化反射编程
- 高考议论文之我见
- PHP程序员必备的7大巫术