CheckServerVersion 方法
Checks the version of the target instance of SQL Server.
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Protected Sub CheckServerVersion ( _
version As ServerVersion _
)
'用途
Dim version As ServerVersion
Me.CheckServerVersion(version)
protected void CheckServerVersion(
ServerVersion version
)
protected:
void CheckServerVersion(
ServerVersion^ version
)
member CheckServerVersion :
version:ServerVersion -> unit
protected function CheckServerVersion(
version : ServerVersion
)
參數
- version
型別:Microsoft.SqlServer.Management.Common. . :: . .ServerVersion
A ServerVersion object that specifies the version of the target server for the connection.
備註
This method throws a ConnectionFailureException error if the target server version is SQL Server 7.0 or an earlier version.