Soc

SQL-DMO

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:

  • How to create an instance of a SQL-DMO object.

  • How to access a SQL-DMO object's member functions when using C.

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