SqlCeConnection connection = new SqlCeConnection("Data Source=myDatabase.sdf"); connection.Open(); SqlCeCommand command = new SqlCeCommand("SELECT * FROM Customers", connection); SqlCeDataReader reader = command.Execute(); while (reader.Read()) { Console.WriteLine(reader["CustomerName"]); } reader.Close(); connection.Close();In this example, the Execute method is used to execute a SELECT query against the Customers table in the myDatabase.sdf database. The results are then read using a while loop that iterates through each row returned by the query. Package library: System.Data.SqlServerCe.