I have tried this on IDE SharpDevelop not on visual studio. I am using the namespace like this:
using System.Data.OleDb;
But it is showing me following error:
'Data' does not exist in the namespace 'System'(are you missing an assembly reference?)(CS0234)
Listen to the compiler: you're probably missing a reference to the System.Data
assembly in your project. You need to add that reference using the Add Reference...
dialog from the Project
menu.