In order to fix the errors, you need to add
using System.Data.SqlClient;
or you need to specify the namespace for the classes, for example
System.Data.SqlClient.SqlConnection sqlConnection1 = new System.Data.SqlClient.SqlConnection("Your Connection String");
Also ensure that System.Data assembly is included in your project references.