Tag Archives: MS ACCESS

Writing to an ms access database using C# Window Application

Please try below code to write in MS ACCESS databse using C# Window Application: System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(@”Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\amar\Documents\Database1.accdb”); conn.Open(); using (System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand()) { cmd.Connection = conn; cmd.CommandText = “Insert Into Employee (UserName, fname, sname, email) … Continue reading

Posted in General | Tagged , , | 3 Comments