Extended Stored Procedures from C++ Require extern "C" (205415)
The information in this article applies to:
This article was previously published under Q205415 SUMMARY
In order to compile C+/+ projects into a SQL Server extended procedure it is required to make the header file Srv.h externally declared as it was intended for ANSII "C" applications. Not doing this will result in the error "LNK2001" during compile time.
REFERENCES
For more indepth examples of extended stored procedures please refer to the Programmer's Toolkit samples:
This limitation is also documented in the following Microsoft Knowledge Base articles: NOTE: They do not mention that this requirement also holds true for SQL extended procedures.
96433 INF: Using DB-Library with C++
157919 INF: Building an ODS Application with MFC
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kbhowto KB205415 |
---|
|