ylbtech-ADO.NET:ADO.NET-Oracle|SQLServer|MySql|Access|Excel-dddd ADO.NET:连接数据字符串 1.A,SqlServer返回顶部 1.0, using System.Data.SqlClient; 1.1,本地连接 SqlConnection con = null; public DBConnection() { con = new SqlConnection(); con.ConnectionString = "server=…