命名空间:using System.Data.SqlClient; using System.Data;相关类:1、SqlConnection类:使用(SqlConnection conn=new SqlConnection(s)){ conn.Open(); …….. }