Search code examples
c++windowssql-server-ce

How can I query a MS SQL Compact Server 3.5 database in C++ not using the OLE DB API?


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 please.

Does anyone know the API?

EDIT

If this is not possible is there a fully functional example in C++ demonstrating accessing a database using the MSSQL Compact Server edition?


Solution

  • I do not think that is possible - http://msdn.microsoft.com/en-US/library/ms174579(v=SQL.90).aspx - an OLEDB sample is available here: http://archive.msdn.microsoft.com/sqlce/Release/ProjectReleases.aspx?ReleaseId=3808