用sql語句動態的創建access表的代如下!
<%
nowtime = now()
tablename = cstr(year(nowtime))+\
_\
+cstr(second(nowtime))
response
write tablename
db_path = \
test
mdb\
Set conn= Server
CreateObject(\
ADODB
Connection\
)
connstr = \
Provider=Microsoft
Jet
OLEDB
;Data Source=\
&Server
MapPath(db_path)
conn
Open connstr
Set rs = Server
CreateObject (\
ADODB
Recordset\
)
sql = \
create table \
& tablename &\
(id integer primary key
name text
Birthday datetime)\
rs
Open sql
conn
%>
From:http://tw.wingwit.com/Article/program/net/201311/11594.html