Forget what I said about pasting the trace output into management Studio, as that's not valid. You can't run a SQL CE query with @parameters inside it. You have to feed it into ADO.NET with parameters.
I'm now playing with LINQ to Entities as a comparison. Greg
