I think you can't read .sdf files, or connect to these files, without using a driver or rdbms system.
Are you using windows ce or SqlServer CE on xp/vista?
I assumed the later is the case. (SQLServer CE on XP/Vista).
Walaa said:
- Generate the code for normal sqlserver.
When you generate the code for normal SQL Server, the generated code references some LLBLGen Pro libraries, one of the is the SQLServerDQE. (refer to the manual "Using the generated code -> Compiling the code")
Walaa said:
- Recompile the SqlServerCE DQE and modify the code a bit so it references the normal .NET assemblies, and has the same assembly name as the normal DQE so you can use the SqlServer templates.
- Use the modified DQE all over the place instead of the normal SQLServerDQE.
Now you have the SQLServerDQE library referenced from your generated code, but we don't want to use it, we want to use the SQLServerCE DQE, and since the source code of all these libraries is available to you (<LLBLGenPro Installation Folder>\RuntimeLibraries\Sourcecode).
So we need to recompile the SQLServerCE DQE which knows how to deal with SQL Server CE, and to let it reference .NET libraries rather than the Compact Framework ones, and then let it have the assembly name of the normal SQLServerDQE assembly. Since we are going to reference it instead of the one being referenced already, so the main idea is to let it look like the normal DQE and make it use .NET libraries since it's supposed to work on windows xp/vista rather than the CF.