标签:bsp new data com cmd adapter nec 简单 select
private void sqlconn(string time) { SqlConnection conn = new SqlConnection("SERVER=.;DATABASE=pubs;PWD=;UID=sa;"); SqlCommand cmd = new SqlCommand("SELECT*FROM [table]‘", conn); DataSet ds = new DataSet(); SqlDataAdapter adp = new SqlDataAdapter(cmd); adp.Fill(ds); }
标签:bsp new data com cmd adapter nec 简单 select
原文地址:http://www.cnblogs.com/SabWoF/p/6168220.html