ConnectionManager.CheckServerVersion-Methode
SQL Server 2012
Checks the version of the target instance of SQL Server.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Parameter
- version
- Typ: 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.