最佳答案:一、方法/步骤1:开启数据库连接服务using System.Data.SqlClient;SqlConnection conn = new SqlConnection();string connec