SqlConnection con = new SqlConnection("DataSource=localhost;Integrated Security=SSPI;Initial Catalog=northwind"); SqlCommand cmd = con.CreateCommand(); cmd.CommandText = "SELECT CategoryID, CategoryName FROM Categories"; con.Open(); SqlDataReader read = catCMD.ExecuteReader