The IsOS method returns True when the Microsoft® SQL Server™ installation referenced is running on a computer using the specified operating system.
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 |
| 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® |
True or False as described in Settings.
HRESULT IsOS(SQLDMO_OS_TYPE lType,
LPBOOL pRetVal);