Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 Windows 应用程序,我想将数据集或数据表转储到本地数据库,即 MS Access。
任何人都可以对此提出任何建议吗?
数据库是否已经创建?如果是这样,只需使用 OleDB DataAdapter。
OleDbConnection con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=Pathname"); con.Open(); OleDbDataAdapter da = new DataAdapter(SQL command, conn); da.Update(dataset); con.Close();