I'm developing an application for a smart device, when I add "Distinct" to my query, I got the following message "The command contains one or more error", when I remove "Distinct" to the query it will work.
here's the query:
AdoceDataAdapter da = new AdoceDataAdapter("Select Distinct Name From Students",cn);
DataSet ds = new DataSet();
da.Fill(ds);
Any suggestions

Error using Distinct !!
ghe
That is quite expected as ADOCE does not support Distinct. Please consider upgrading to SQL Mobile. Since ADOCE is no longer supported/available, it’s a good idea anyway.