各位asp里面可以直接往数据库里面创建表,并为其添假字段吗?100分求!
我在做一个系统,希望能动态的往数据库里面加表,做了下面的一个例子试了试发现不行,请各位高手回复一下,小弟谢了先:)
程序:
<!-- #include file="conn.asp" -->
<%
sql4="CREATE TABLE [news111] ([title] [char] (100) NULL ,[author] [char] (100) NULL ,[resource] [char] (100) NULL ,[classid] [char] (10) NULL ,[classname] [char] (10) NULL ,[content] [ntext] NULL ,[posttime] [datetime] NULL ,) GO"
conn.execute(sql4)
response.write "成功啊!"
%>