SQL Server 精简版 4.0 SDK? [英] SQL Server Compact Edition 4.0 SDK?
问题描述
,并且
<块引用>构建 OLE DB 应用程序 (SQL Server Compact)
构建支持 OLE DB 的应用程序的下一步是包含适当的头文件.在应用程序的主入口点中,为 SQL Server Compact OLE DB 提供程序和 SQL Server Compact 错误文件添加包含语句:
#include #include <sqlce_err.h >
文件包含在包 SSCE 4.0 设计工具 (SSCEVSTools-ENU.msi) (此处记录).此可执行文件在 Visual Studio 2012 Premium Edition DVD 上可用.可能还有其他版本和版本,但这是我唯一的.
我自己需要这些文件,我在那里挖了一个小时后找到了.
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 >
The files are included in the package SSCE 4.0 Design Tools (SSCEVSTools-ENU.msi) (documented here). This executable is available on the Visual Studio 2012 Premium Edition DVD. Possibly in other editions and verisons as well, but this is the only one I have.
I needed the files myself and after digging around for an hour I found it there.
这篇关于SQL Server 精简版 4.0 SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!