Adnan Bhatti
Adnan Bhatti

Reputation: 3480

If I embed SQL Server Compact Edition 4.0 x64 in my application, can I deploy app on x86 clients?

I am using x64 machine so if I embed SQL Server Compact Edition 4.0 x64 in my app can I install that app on x86?

Upvotes: 2

Views: 1319

Answers (3)

ErikEJ
ErikEJ

Reputation: 41779

You can include all required files for both platforms as described here: http://erikej.blogspot.com/2011/02/using-sql-server-compact-40-with.html

Upvotes: 3

Bob King
Bob King

Reputation: 25856

Another choice, which trades a bit of space for a whole lot of simplicity is to deploy both the x86/* and AMD64/* native dlls alongside your managed System.Data.SqlServerCe.dll and let the runtime decide. It adds a few Mb, but streamlines you to a single build and single installer.

Upvotes: 1

ChrisLively
ChrisLively

Reputation: 88074

No.

You would need to compile your app for x86 targets and include the x86 version of SQL Compact.

It's probably easier to just provide two different installers than a single one with both versions of your app and SQL Compact.

Upvotes: 4

Related Questions