SQL-DMO

Soc

The Soc sample illustrates using C as a development language for SQL-DMO applications.

Default Location

C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\sqldmo\c\soc

Running the Sample
  1. Open the Soc.dsw workspace.

  2. Run the application.
Remarks

The sample shows:

The Soc sample is a console application.

Build Configurations

Soc.mak contains nmake configurations for Intel®.

Build target CFG parameter Output directory
Intel x86 debug "soc - Win32 Debug" Debug
Intel x86 release "soc - Win32 Release" Release

Functions and Methods Illustrated
CoCreateInstance SQLServer::Connect
Release SQLServer::SetLoginTimeout

See Also

SQL-DMO Samples