惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
T
Threatpost
Latest news
Latest news
N
News | PayPal Newsroom
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
TaoSecurity Blog
TaoSecurity Blog
The Last Watchdog
The Last Watchdog
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
O
OpenAI News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
The Exploit Database - CXSecurity.com
NISL@THU
NISL@THU
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Securelist
小众软件
小众软件
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
Cisco Talos Blog
Cisco Talos Blog
云风的 BLOG
云风的 BLOG
AWS News Blog
AWS News Blog
GbyAI
GbyAI
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
美团技术团队
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
博客园 - 聂微东
V2EX - 技术
V2EX - 技术
T
Troy Hunt's Blog
SecWiki News
SecWiki News
S
Secure Thoughts
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
腾讯CDC
H
Heimdal Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed

博客园 - kenty06

LINQ 查询Select LINQ之DataContext 数据上下文 Dedecms57 分页 dede:pagelist 说明 window service服务安装错误 命名空间基础知识 - kenty06 - 博客园 C#简单类型转换说明 建立全文索引以及使用 Asp.net中防止用户多次登录的方法 VSS使用手册 开启全文索引 extJS初学小问题之js文件编码 - kenty06 - 博客园 希尔排序 VS2008加载包失败的解决方法 VS2005快捷键(转) 关于 odbc OdbcParameter参数问题 - kenty06 关于枚举enum的tostring方法不能重写的一种替代方案 asp.net 2.0 学习点滴推荐(001) - kenty06 aspx页面事件顺序 - kenty06 - 博客园 C#中的default
在 dotnet环境下使用 文件dsn - kenty06
kenty06 · 2009-05-22 · via 博客园 - kenty06

2009-05-22 15:43  kenty06  阅读(319)  评论()    收藏  举报

格式
 一、直接在 写配置文件 filedsn=x:""xxx"xxx.dsn;uid=xxxxx;pwd=xxxx
 二、只写文件地址,不写uid和pwd,但要在文件dsn里面写入这两项,如
        filedsn=x:""xxx"xxx.dsn;
        -------------内容---------------------
        DRIVER=SQL Server
        UID=xxxxxxx
        PWD=xxxxxxx
        Network=DBMSSOCN
        DATABASE=xxxxxxx
        WSID=xxxxxx
        APP=Microsoft Data Access Components
        SERVER=xxxxxx
        Description=xxxxx
        ----------------------------------
三、在配置中只写文件名,需要在注册表中配置文件dsn的默认路径,以及在文件中写uid和pwd
    filedsn=xxx.dsn;
    -------------内容---------------------
        DRIVER=SQL Server
        UID=xxxxxxx
        PWD=xxxxxxx
        Network=DBMSSOCN
        DATABASE=xxxxxxx
        WSID=xxxxxx
        APP=Microsoft Data Access Components
        SERVER=xxxxxx
        Description=xxxxx
        ----------------------------------
        注册表路径
        HKEY_LOCAL_MACHINE"Software"Microsoft"Shared Tools"MSQuery(windows95以前)
        如果有安装 Microsoft Office 97 或者以后的版本,应该修改
        HKEY_LOCAL_MACHINE"Software"ODBC"odbc.ini"ODBC File DSN"DefaultDSNDir
        你也可以定义只用于当前用户的文件dsn默认路径
        HKEY_CURRENT_USER"Software"ODBC"odbc.ini"ODBC File DSN"DefaultDSNDir

        解决方案来源:http://support.microsoft.com/kb/165866/EN-US/