SqlConnection nwindConn = new SqlConnection("Data Source=.;DataBase=")
OleDbConnection nwindConn = new OleDbConnection("Provider=SQLOLEDB;Data Source=.;DataBase=")
OdbcConnection nwindConn = new OdbcConnection("Driver={SQL Server};Server=.")
OracleConnection oraConn = new OracleConnection("Data Source=MyOracleServer;Integrated Security")想问下大家为什么SqlConnection,OracleConnection 中的构造函数不用写: Provider=SQLOLEDB驱动程序
而OleDbConnection 要写Provider=SQLOLEDB驱动程序