IsOS Method
后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
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
)
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_WINNT |
2 |
A constant that specifies the operating system. |
Returns
TRUE or FALSE as described in Settings.