I'm trying to read data from my SQL Server Compact database, but I keep getting the same error <p>I'm querying a <a href="http://en.wikipedia.org/wiki/SQL_Server_Compact" rel="nofollow noreferrer">SQL Server Compact</a> database with "SELECT * FROM User", and I get an error parsing the query:</p> <blockquote> <p>Token line number = 1,Token line offset = 15,Token in error = User</p> </blockquote> <p>How do I fix this?</p> <p>The code I'm using is this:</p> <pre><code>public static List&lt;User&gt; GetUsers() { List&lt;User&gt; users = new List&lt;User&gt;(); using (SqlCeConnection con = new SqlCeConnection(Properties.Settings.Default.DatabaseConnection)) { con.Open(); using (SqlCeCommand command = new SqlCeCommand("SELECT * FROM " + TABLE, con)) { SqlCeDataReader reader = command.ExecuteReader(); while (reader.Read()) { int id = reader.GetInt32(0); string user = reader.GetString(1); User usr = null; using (MemoryStream s = new MemoryStream()) { NetDataContractSerializer serializer = new NetDataContractSerializer(); s.Write(ASCIIEncoding.ASCII.GetBytes(user.ToCharArray()), 0, user.Length); s.Position = 0; usr = (User)serializer.Deserialize(s); } } } } return users; } </code></pre> <p>Note: I also get this error trying to add information.</p>