评论会员:游客 时间:2012/02/04
Raji细胞在CodeProject
SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;Initial Catalog=Your Database Name;Integrated Security=True");
con.Open();
SqlCommand command= new SqlCommand();
command.Connection = con;
command.CommandType = CommandType.Text;
command.CommandText = "your query here"
try
{
command.ExecuteNonQuery();
con.Close();
}
catch (Exception e)
{
}
评论会员:游客 时间:2012/02/04
SAKryukov:imgsrc=]。这种问题是无用的。另见:{A1}]mdash;SA