110,530
社区成员
发帖
与我相关
我的任务
分享
using (连接串)
{
conn.Open();
SqlDataAdapter da = new SqlDataAdapter(string.Format(@"select * from Songs"), conn);
DataSet ds = new DataSet();
da.Fill(ds);
DataRow dr = ds.Tables[0].NewRow();
dr["strSongName"] = " " + Path.GetFileName(strFile);
dr["strPath"] = strFile;
ds.Tables[0].Rows.Add(dr);