日期:2014-05-18 浏览次数:20949 次
private void button1_Click(object sender, EventArgs e) { string strSrc = "Server=LIUKAI-THINK;Integrated security=SSPI;database=CkMonitor"; string strSrc = "Server=LIUKAI-THINK;Integrated security=SSPI;database=CkMonitor"; using (SqlConnection thisConnection = new SqlConnection(strSrc)) { thisConnection.Open(); string sql = "SELECT * INTO CkMonitor.Project FROM Monitor.Project"; SqlCommand cmd = new SqlCommand(sql,thisConnection); cmd.ExecuteNonQuery(); } }