What do you need to import with the “using” statement in C# to be able to work with SQL?

For Microsoft


using System.Data;
using System.Data.SqlClient;

System.Data includes the DataReader, DataAdapter, Connetions, Commands and so on (from ADO.NET).

For Oracle


using System.Data;
using Oracle.ManagedDataAccess.Client;
using Oracle.ManagedDataAccess.Types;

Filed under: C#