Метод ConnectionManager.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.