This documentation is archived and is not being maintained.

IsOS Method

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

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


object
.IsOS(
Type
)

object

Expression that evaluates to an object in the Applies To list.

Type

Long integer that specifies an operating system as described in Settings.

HRESULT IsOS(SQLDMO_OS_TYPE lType,
LPBOOL pRetVal);

Constant Value Description

SQLDMO_WINNT

2

Microsoft Windows NT 4.0, Microsoft Windows 2000, Microsoft Windows XP, or Microsoft Windows Server 2003

TRUE or FALSE as described in Settings.

Show: