数据库连接字符串大全
作者: Webmaster 来源: Linuxdby.com 点击:
日期: 2007-06-03
[收藏 ] [投稿 ]
IE是否经常中毒?推荐您
Use the SQL Native Client if you are accessing an SQL Server 2005 and need the new features of SQL Server 2005 such as MARS, encryption, XML data type etc. Continue use your current provider (OLE DB / ODBC through the MDAC package) if you are not connecting to an SQL Server 2005 (that's quite obvious eh..) or if you are connecting to an SQL Server 2005 but are not using any of the new SQL Server 2005 features.
For more details on the differences between MDAC and SQL Native Client, read this msdn article >>
Access
ODBC
Standard Security:
"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;Uid=Admin;Pwd=;"
Workgroup:
"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;SystemDB=C:\mydatabase.mdw;"
Exclusive:
"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;Exclusive=1;Uid=admin;Pwd="
OLE DB, OleDbConnection (.NET)
Standard security:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;User Id=admin;Password=;"
Workgroup (system database):
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:System Database=system.mdw;"
With password:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:Database Password=MyDbPassword;"
Oracle
ODBC
OLE DB, OleDbConnection (.NET)
OracleConnection (.NET)
Standard:
"Data Source=MyOracleDB;Integrated Security=yes;"
This one works only with Oracle 8i release 3 or later
Specifying username and password:
【文章评论 】
【收藏本文 】
【推荐好友 】
【打印本文 】
【我要投稿 】 【论坛讨论 】
相关文章:
·精华推荐 数据库系统专用词汇集锦之三 ·罗维数据库营销的网络化 改善客户体验 ·精华推荐 数据库系统专用词汇集锦之二 ·轻松七个步骤帮助你来顺利开发数据仓库 ·SQL语句基础学习 帮你明了数值数据类型 ·SQL语句基础学习 从子表里如何删除数据 ·SQL语句基础学习 子选择如何来合并查询 ·逐行扫描 为你讲解几个基本SQLPLUS命令 ·精华推荐 数据库系统专用词汇集锦之一 ·数据库基础知识帮你分析何为ASP数据库
文章评论: (1条)
声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。