IsOS Method (SQL-DMO)

The IsOS method returns True when the Microsoft® SQL Server™ installation referenced is running on a computer using the specified operating system.

Applies To

SQLServer Object

Syntax

object.IsOS( Type )

Part Description
object Expression that evaluates to an object in the Applies To list
Type Long integer specifying an operating system as described in Settings

Settings
Constant Value Description
SQLDMO_WIN95 1 Returns True if the operating system of the computer implementing SQL Server is Microsoft Windows® 95/98
SQLDMO_WINNT 2 Returns True if the operating system of the computer implementing SQL Server is Microsoft Windows NT®

Returns

True or False as described in Settings.

Prototype (C/C++)

HRESULT IsOS(SQLDMO_OS_TYPE lType,
LPBOOL pRetVal);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.