社区
ASP
帖子详情
dsn数据连接出错,求助!
wdj79
2004-04-07 06:27:44
我用DreamWeaver中ASP连接SQL数据库,用的是DSN数据连接,在DW中,测试连接正常,而且在DreamWeaver的面扳上能显示数据库的内容,可是我一绑定记录集,调试该ASP网页就报错,提示我连接数据库的语句出错,我检查了一下,连接语句为:MM_MYSQL_STRING="dsn=LocalSever;"
请问这句话错在哪里?如果想自己写连接语句应该怎么写?
...全文
123
6
打赏
收藏
dsn数据连接出错,求助!
我用DreamWeaver中ASP连接SQL数据库,用的是DSN数据连接,在DW中,测试连接正常,而且在DreamWeaver的面扳上能显示数据库的内容,可是我一绑定记录集,调试该ASP网页就报错,提示我连接数据库的语句出错,我检查了一下,连接语句为:MM_MYSQL_STRING="dsn=LocalSever;" 请问这句话错在哪里?如果想自己写连接语句应该怎么写?
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
wdj79
2004-04-07
打赏
举报
回复
asp最好用什么工具开发?我的意思是可以有比较多的提示
qxg1123
2004-04-07
打赏
举报
回复
用oledb吧,如果会的话尽量手写一些代码
而且oledb方式比DSN方式灵活,更快速
N1rvana
2004-04-07
打赏
举报
回复
不要用dsn连接了,用OLE DB连接连接的代码可以是这样:
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("data.mdb")
conn.Open connstr
另外。。。尽可能不要奢望用Dreamwaever做ASP程序,那样效率太低,并且大大浪费了你的时间
hglwy
2004-04-07
打赏
举报
回复
不好意识 刚才给的是ACCESS数据库的
SQL SERVER的要这样
Strcon="DRIVER=SQL SERVER;SERVER=IP;PWD=密码;UID=用户名;database=数据库名;"
baby21st
2004-04-07
打赏
举报
回复
<%
set con = server.createobject("adodb.connection")
con.open "YourDsn","Uid","Pwd"
%>
hglwy
2004-04-07
打赏
举报
回复
建议你用 ADO 来连接数据库
<%
Dim Strcon,Conn
set Conn=server.createobject("adodb.connection")
Strcon="DRIVER=Microsoft Access Driver (*.mdb);uid=admin;DBQ=d:\Code\Wise.mdb"
Conn.open Strcon 3,1
%>
LeetCode 199. Binary Tree Right Side View 题解
本题是二叉树的经典问题,主要考察对二叉树遍历的理解和应用。通过使用广度优先搜索,我们可以高效地获取二叉树的右视图。广度优先搜索的核心思想是:按层遍历二叉树,对于每一层,记录最后一个节点的值,即为从右侧能看到的节点。这种方法不仅适用于二叉树的右视图问题,还可以应用于许多其他需要按层遍历二叉树的场景。掌握广度优先搜索的思想,对于解决这类问题非常重要。
leetcode-199 Binary Tree Right Side View
问题描述地址: https://leetcode.com/problems/binary-tree-right-side-view/描述: Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from
[LeetCode 199] Binary Tree Right Side View
题目链接:binary-tree-right-side-view import java.util.ArrayList; import java.util.List; /** * Given a binary tree, imagine yourself standing on the right side of it, return the values of the n
LeetCode Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.For example:Given the following binary tree, 1
[LeetCode]Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For example: Given the following binary tree, 1
ASP
28,402
社区成员
356,940
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章