This article refers to the following Microsoft .NET Framework Class Library namespace:
- System.Data.OleDb
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
using System.Data.OleDb;
String myConn ="Provider=Microsoft.JET.OLEDB.4.0;Data Source=C:\\Nwind.mdb;";
String myQuery = "Insert into Customers(CustomerID,CompanyName) Values ('aaaaa', 'aaaaa')";
OleDbConnection cn = new OleDbConnection(myConn);
cn.Open();
OleDbCommand cmd = new OleDbCommand(myQuery, cn);
cmd.ExecuteNonQuery();
cn.close();
Keywords: kbsystemdata, kbprb, kbnofix, kbdsupport, kbaspwpswept, kbado2sweep, kbado2applies, kb, kberrmsg, kbtshoot, kbvs2003swept