Two namespaces are required to Work with database object in asp.net pages. 1-System.Data , 2-System.Data.SqlClient