关于access数据库连接绝对路径的问题求解
数据库连接提示如下报错,看的出来是页面与数据库连接的问题,现在我的是相对连接。
要怎么将其该成绝对连接呢?我的数据库文件路径在:
D:\web\db
还是要先谢谢大人们帮助小白菜我
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/add.asp, line 10
HTML code:
<form name="form1" method="post" action="addmsg.asp">
你的姓名:<input type="text" name="name"><br>
你的电话:<input type="text" name="tel"><br>
你的留言:<input type="text" name="message" value=""><br>
<input type="submit" name="submit" value="提交">
<input type="reset" name="submit2" value="重置">
</form>
<%
set conn= server.createobject("adodb.connection")
conn.open "driver={microsoft access driver(*.mdb)};dbq=" & server.mappath("database\guestbook.mdb")
name=request.form("name")
tel=request.form("tel")
message=request.form("message")
exec="insert into guestbook(username, tel, message) values ('" & name & "', "& tel & &qu
相关问答:
access 中执行sql update语句时有时候成功有时候不成功,但是access中不出错误信息,不知道是什么原因,有哪位大侠知道,请帮忙啊
贴SQL语句,检查表、字段的有效性设置
sql 在查询分析器里面 执行很正常
是 ......
_RecordsetPtr CMyAdo::SelectRecord(string &where, string &tablename,string &field, int way )
{
int ret = 0;
_RecordsetPtr pset;
CString sql;
& ......
要组合4张表的查询,分别是A表,B表,C表,D表;
A表
Game_id Game_Name
1 abc
B表
Category_ID Category_Name Game_id
& ......
时间格式?
别拿coldatatime 和CTime什么的说事。。说点有用的。。。所有积分相送
什么问题?
format(#2009-1-1#,'yyyy-mm-dd')?
select #2009-1-1#
insert into table (mydate) values ( ......
表结构:
ProductSeriesID 自动编号
ProductSeriesName 文本
ProductSeriesRemark 备注
执行前
ProductSeriesID ProductSeriesName ProductSeriesRemark
2 LV铣刀系列 LV铣刀系列
3 钨钢舍 ......