Where is the SQL Server Compact Edition 4.0 SDK?
Bonus Reading
In order to create a database in SQL Server Compact Edition you must call the function ME_CreateDatabase
exported from sqlceme40.dll
:
The function is not documented on MSDN, and the header files do not ship with the redistributable (obviously).
MSDN mentions 3 Compact Edition header files:
sqlce_err.h
: Error codes used by databasesqlce_oledb.h
: OLEDB standard programming interfacessqlce_sync.h
That page also mentions that, if i had the SDK, the header files would be located in:
SQL Server Compact 4.0 header files are installed under %ProgramFiles%\Microsoft SQL Server Compact Edition\v4.0\Include.
But i don't, so they aren't:
So where is the SQL Server Compact Edition 4.0 SDK?
Bonus Chatter
Building an OLE DB Application (SQL Server Compact)
The next step in building an OLE DB-enabled application is to include the appropriate header files. In the main entry point for your application, add include statements for the SQL Server Compact OLE DB provider and the SQL Server Compact error file:
#include <sqlce_oledb.h> #include <sqlce_err.h >
ME_CreateDatabase
is undocumented, it's probably designed to be called internally by the database engine. Am I missing something here? There are literally thousands of internal functions called by SQL Server CE 3.5 that aren't documented (because they're internal). Also, you provide a link in your opening paragraph that mentions nothing about the SDK being available. Where do you see that it is? – Ken WhiteCreateDatabase
method that's used to "create a database" (so theME_CreateDatabase
is not needed after all). I see @JohnDewey solved the problem of the missing SDK headers, though. :) Maybe you could edit your question to remove all the extraneous noise and just ask about where to find the SQL Server CE 4.0 SDK? – Ken WhiteCreateDatabase
method. Unfortunately that is not an API i can call. The reason i cannot call it is because it does not exist as an API. – Ian Boyd