IsOS Method

SQL-DMO

SQL-DMO

IsOS Method

The IsOS method returns TRUE when an instance of Microsoft® SQL Server™ 2000 referenced is running on a computer using the specified operating system.

Applies To
SQLServer Object
Syntax

object.IsOS( Type )

Parts

object

Expression that evaluates to an object in the Applies To list

Type

Long integer that specifies an operating system as described in Settings

Prototype (C/C++)

HRESULT IsOS(SQLDMO_OS_TYPE lType,
LPBOOL pRetVal);

Settings
Constant Value Description
SQLDMO_WIN95 1 Microsoft Windows® 95 or Microsoft Windows® 98
SQLDMO_WINNT 2 Microsoft Windows NT® 4.0 or Microsoft Windows 2000®

Returns

TRUE or FALSE as described in Settings