<% Dim DB,RS,SQL DB = "DB.asp" ’这里改成你的数据库,后缀一定要是asp Set Conn = Server.CreateObject("Adodb.Connection") Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath(db) Conn.Execute("Create Table NotDownload(NotDown OLEObject)") Set RS = Server.CreateObject("ADODB.RecordSet") SQL = "Select * FROM NotDownload" RS.Open SQL,Conn,1,3 RS.Addnew RS("NotDown").appendchunk(chrB(Asc("<")) & chrB(Asc("%"))) RS.Update RS.Close Set RS = Nothing Conn.Close Set Conn = Nothing Response.Write "数据库防下载处理完成,请确认您的Access数据库已经改为ASP后缀" %> |