:ft: 大家好,我刚刚开始学习这么做ASP的网页, 我也安装了IIS5.0, 也测试了服务期, 这些都OK, 当我设计集录集的时候,需要设置一个ACCESS数据库, 我也已经给数据库装了ODBC连接, 也已经有了连接, 但每当我把记录集放在网页上是,它老是不能出现,给我一个错误的指示,如下: ""错误类型: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver] Microsoft Jet 数据库引擎打不开文件'(未知的)'。 它已经被别的用户以独占方式打开,或没有查看数据的权限。 /testingfile.asp, 第 8 行"" 请大家帮帮忙,谢谢!!
由于这个问题,害的我只能停在这里,不能在深入学习其他的例子. 请大家多帮帮忙, 谢谢!! 关掉了数据库, 是指把microsoft access的程序关掉吗? 如果是的话我已经试了,可是得到的还是同样的错误类型: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver] Microsoft Jet 数据库引擎打不开文件'(未知的)'。 它已经被别的用户以独占方式打开,或没有查看数据的权限。 /phone.asp, 第 8 行 我肯定没有用独占方式打开, 谁知道该这么样改权限吗? 由于这个问题,害的我只能停在这里,不能在深入学习其他的例子. 请大家多帮帮忙, 谢谢!! 我是用dreamweaver来写这个文档的,代码如下 <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <!--#include file="Connections/db1.asp" --> <% Dim Recordset1 Dim Recordset1_numRows Set Recordset1 = Server.CreateObject("ADODB.Recordset") Recordset1.ActiveConnection = MM_db1_STRING Recordset1.Source = "SELECT * FROM 三星" Recordset1.CursorType = 0 Recordset1.CursorLocation = 2 Recordset1.LockType = 1 Recordset1.Open() Recordset1_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = 10 Repeat1__index = 0 Recordset1_numRows = Recordset1_numRows + Repeat1__numRows %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>Untitled Document</title> </head> <body> <table border="1"> <tr> <td>编号</td> <td>型号</td> <td>价格</td> </tr> <% While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) %> <tr> <td><%=(Recordset1.Fields.Item("编号").Value)%></td> <td><%=(Recordset1.Fields.Item("型号").Value)%></td> <td><%=(Recordset1.Fields.Item("价格").Value)%></td> </tr> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 Recordset1.MoveNext() Wend %> </table> <p> </p> </body> </html> <% Recordset1.Close() Set Recordset1 = Nothing %>