asp插入数据错误

来源:百度知道 编辑:UC知道 时间:2024/06/15 06:25:45
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>添加数据</title>
</head>

<body>
<!-- #include file="database.asp"-->
<%
set rs=server.CreateObject("ADODB.recordset")
sql="select * from yourdata"
rs.open sql,con,1,3

password=request.Form("password1")
username=request.Form("username

错误类型:
Microsoft JET Database Engine (0x80004005)
不能使用 '';文件已在使用中。

出现以上错误的原因:资料库在打开状态,浏览纲页.解决方法:关闭编辑状态的资料库,然后重新启动一下编辑软件

另con.execute(sql)'注意这裏哟,没有看到你的sql语句哟,是否输入有误

你打开了数据库文件!关了运行就好了!

将dreamweaver关闭再打开就可以了。