C# 连SQL的简单代码

来源:百度知道 编辑:UC知道 时间:2024/05/22 08:16:51

using Date;
using Date.SqlCenir;

SqlConnection conn = new SqlConnection("连数据库的名字和服务器的名字,账号和密码");
conn.Open();
SqlCommand cmd = new SqlCommand(SQL语句,conn);

cmd.E 什么开头的
conn.Close();