DotNet连接数据库的方法
The SQL Server .NET Data Provider
连接SQL Server数据库
"data source=服务器名;initial catalog=数据库名;user id=sa;password=;"
The OLE DB .NET Data Provider
连接SQL Server数据库
"Provider=SQLOLEDB;Persist Security Info=False;Data Source=服务器名;Initial Catalog=数据库名;User ID=sa;Password=;"
连接Oracle数据库
"Provider=MSDAORA;Data Source=服务器名;User ID=用户ID;Password=密码;"
连接ACCESS数据库
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=*.mdb"
Oracle客户端连接Oracle
连接Oracle 7
"Provider=MSDAORA.1;User ID=;Data Source=;Password="
连接Oracle 8
"Provider=OraOLEDB.Oracle.1;User ID=;Data Source=;Password="
DotNET Managed Provider for Oracle
连接Oracle 8
"Data Source=; User ID=; Password="
命名空间是System.Data.OracleClient