Hello

I have an application using SQL Server CE Compact, which is running on a
mobile device.
Now I want to use the same exe on my desktop machine.

I know that the desktop framework can read the same database, but I think
only when refering to the desktop DLL of the SQL Server CE Compact.

So is there no way to run the same single exe on the desktop with SQL
compact support?

Thanks

Re: .NET CF-Application with SQL Server CE Compact running on Desktop? by ctacke/>

ctacke/>
Thu Mar 06 07:51:13 CST 2008

Since CF assemblies are retargetable it *might* work, provided you have the
right SQL CE binaries for the desktop with the app (there are native
assemblies that are processor and OS specific). The point there, though, is
that you need to have 2 installs anyway, so why not just make an actual
desktop app?


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"James Cohn" <james.cohn@hotmail.com> wrote in message
news:eYHYjF3fIHA.4140@TK2MSFTNGP04.phx.gbl...
> Hello
>
> I have an application using SQL Server CE Compact, which is running on a
> mobile device.
> Now I want to use the same exe on my desktop machine.
>
> I know that the desktop framework can read the same database, but I think
> only when refering to the desktop DLL of the SQL Server CE Compact.
>
> So is there no way to run the same single exe on the desktop with SQL
> compact support?
>
> Thanks
>
>



Re: .NET CF-Application with SQL Server CE Compact running on Desktop? by Ginny

Ginny
Thu Mar 06 13:32:35 CST 2008

James,

You can't use the same EXEs on desktop and device, although you can share
code:
http://msdn2.microsoft.com/en-us/magazine/cc163387.aspx

--
Ginny Caughey
Device Application Development MVP

www.wasteworks.com
Scalehouse and Billing Software for Waste Management



"James Cohn" <james.cohn@hotmail.com> wrote in message
news:eYHYjF3fIHA.4140@TK2MSFTNGP04.phx.gbl...
> Hello
>
> I have an application using SQL Server CE Compact, which is running on a
> mobile device.
> Now I want to use the same exe on my desktop machine.
>
> I know that the desktop framework can read the same database, but I think
> only when refering to the desktop DLL of the SQL Server CE Compact.
>
> So is there no way to run the same single exe on the desktop with SQL
> compact support?
>
> Thanks
>
>


Re: .NET CF-Application with SQL Server CE Compact running on Desktop? by James

James
Mon Mar 10 08:26:11 CDT 2008

Hello,
I had a small cf app (exe) that I double clicked and it ran on my destop.
Did'nt think that was possible so I did some reading. Apparently,
retargetable will work if your desktop assemblies, (system.etc), contain the
same knowledge. Suspect, if you have not added any extra or updated sdk's,
desk or mobile you should be able to count on retargetable working. From my
little experiement some rework/fine tuning in your will would be needed - I
seem to remember the form was way different looking - no taskbar.

-James


"James Cohn" <james.cohn@hotmail.com> wrote in message
news:eYHYjF3fIHA.4140@TK2MSFTNGP04.phx.gbl...
> Hello
>
> I have an application using SQL Server CE Compact, which is running on a
> mobile device.
> Now I want to use the same exe on my desktop machine.
>
> I know that the desktop framework can read the same database, but I think
> only when refering to the desktop DLL of the SQL Server CE Compact.
>
> So is there no way to run the same single exe on the desktop with SQL
> compact support?
>
> Thanks
>
>