会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
助平君 on Software
It's a Long Way to the Top (If You Wanna Rock 'n' Roll)
博客园
首页
新随笔
新文章
管理
订阅
2005年5月12日
在 w2k3 下相对路径访问 Access 数据库
摘要: Windows 2003 下不配置的话不能使用 Server.MapPath("..\") string connstr = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source =" + Server.MapPath(".").Substring(0, Server.MapPath(".").LastIndexOf(@"\") + 1) + "xxx.mdb"; 这样就能够访问不是同一目录下的数据库文件
阅读全文
posted @ 2005-05-12 15:47 助平君
阅读(340)
评论(0)
推荐(0)
编辑
公告