I have the dlls and the include files of MS SQL Compact Server 3.5. How can I use it without OLE DB? I just want to load the dlls and invoke the necessary methods myself, no COM
For those who are interested in how the issue is resolved.
One does not have to install SqlCE in order to use its COM API.
Here are the steps:
Make sure you have the right dlls.
For SqlCE 3.0 the dlls are:
for SqlCE 3.5:
and for SqlCE 4.0:
You may also need the .h file for the definitions of the respective COM classes. I have these:
Given an sdf Sql CE database file you have to determine which version it belongs to. Google for it, basically you need to read the first 16 bytes of the file, find the magic number and it determines the version.
::LoadLibrary
win32 API for the sqlceoledbNN.dll, where NN is 30, 35 or 40. It depends on other dlls, so they must be near it.::GetProcAddress
win32 API to get the address of the exported DllGetClassObject
function.DllGetClassObject
you are ready to exercise the COM API provided by the Sql CE."Enjoy"