用asp+sql语句动态的创建access表

<% nowtime = now()tablename = cstr(year(nowtime))+"_"+cstr(second(nowtime))response.write tablename  db_path = "test.mdb"Set conn= Server.CreateObject("ADODB.Conn…

<%
 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.4.0;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,2,3
%>

留作参考,对在线升级数据库有用处.

3元购买CN域名,3元cn域名注册

.cn域名,现在3元钱注册了. 喜欢的朋友不妨光顾一下. http://www.yikay.com 域名注册 支持在线支付.

.cn域名,现在3元钱注册了.

喜欢的朋友不妨光顾一下.

http://www.yikay.com

域名注册 支持在线支付.注册商为中国万网.

3元CN域名注册流程:注册会员 ==> 在线支付1元 ==> 域名注册页查询提交 ==> 从购物车提交到收银台 ==> 自动结算.