Visual Studio中訪問SQL數據庫的代碼

string strCon = "Data Source=.;Initial Catalog=Northwind;uid=sa;pwd=Daniel"; using (SqlConnection con = new SqlConnection(strCon)) { using (SqlCommand cmd = con.CreateCommand()) { string strSql = "sel
相關文章
相關標籤/搜索