The Socpp sample illustrates using C++ as a development language for SQL-DMO applications.
C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\sqldmo\cpp\socpp
The sample shows:
The Socpp sample is a console application.
Socpp.mak contains nmake configurations for Intel®.
Build target | CFG parameter | Output directory |
---|---|---|
Intel x86 debug | "socpp - Win32 Debug" | Debug |
Intel x86 release | "socpp - Win32 Release" | Release |
Application::GetName | SQLServer::Connect |
CoCreateInstance | SQLServer::GetApplication |
ErrorInfo::GetDescription | SQLServer::GetVersionMajor |
ErrorInfo::GetSource | SQLServer::GetVersionString |
GetErrorInfo | SQLServer::SetLoginTimeout |
Release | SysFreeString |