标题:数据库问题令孤头痛之至
取消只看楼主
kf6600906
Rank: 1
等 级:新手上路
帖 子:35
专家分:0
注 册:2007-1-19
 问题点数:0 回复次数:0 
数据库问题令孤头痛之至

谁能帮我解决以下数据库问题
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序
<%
set conn = server.CreateObject("ADODB.connection")
conn.Open application("dsn")
'set rs = conn.Execute("exec sp_js99")
set rs = server.CreateObject("ADODB.recordset")
rs.Open "select num as no,score1 as s1,score2 as s2,score3 as s3,score4 as s4,score5 as s5 from student order by num",conn
%>

dim conn,connstr,dbpath
'更改数据库名字
dbpath="newdata.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(dbpath)

搜索更多相关主题的帖子: 数据库 Microsoft 头痛 conn 
2007-03-14 15:15



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-124201-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.095576 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved