虚头和噱头:asp 代码

来源:百度文库 编辑:高校问答 时间:2024/05/01 06:33:54
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC 驱动程序管理器] 驱动程序的 SQLSetConnectAttr 失败
源代码是这个样子的
<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_databbs_STRING
Recordset1.Source = "SELECT * FROM book ORDER BY id ASC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()

Recordset1_numRows = 0
%>

你读取一下 mm_databbs_string 看看是否连接正确