The server cannot call driver = {Microsoft text Driver (*. txt; *. CSV)}. After checking for several hours, it is found that the driver called by ASP requires an Internet Guest Account (iusr_xxx)List folder DirectoriesPermission. It is strange that only the iusr_xxx permission is required to call driver Microsoft Access driver. MDB.Read/writePermission.
< %
Dim Conn, RS
Set Conn = Server. Createobject ( " ADODB. Connection " )
' Set the DBQ portion of the string to the physical folder where your price files reside
Conn. Open " Driver = {Microsoft text Driver (*. txt; *. CSV )}; " & _
" DBQ = D: \ WEB \ Web; " & _ ' I personally think the problem is that he needs to list the files first, and we call the MDB path to write dead, so as long as the MDB file is opened, instead of going through the folder
" Extensions = ASC, CSV, tab, txt; " & _
" Persist Security info = false "
Dim SQL
SQL = " Select * From web.csv "
' (Implicit recordset creation through execute method)
Set RS = Conn.exe cute (SQL)
Response. Write " <Table> <tr bgcolor = lightgrey> <TH> item No. </Th> <TH> item name </Th> <TH> item short name </Th> <TH> unit </Th> <TH> product Points </Th> </tr> "
While Not Rs. EOF
' Here we have stock price text file in format: date high low close volume
Response. Write " <Tr bgcolor = lightblue> <TD> " & RS ( 0 ) & " </TD> <TD> " & RS ( 1 )_
& " </TD> <TD> " & RS ( 2 ) & " </TD> <TD> " & RS ( 3 ) & " </TD> <TD> " & RS ( 4 ) & " </TD> </tr> "
Rs. movenext
Wend
Response. Write " </Table> "
Rs. Close
Set RS = Nothing
Conn. Close
Set Conn = Nothing
% >