ApplicationClass.GetServerInfo Método
Esta API admite la infraestructura de SQL Server 2012 y no está prevista su utilización directa desde el código.
Returns the SQL Server version number of the SQL Server product installed on the target server.
Espacio de nombres: Microsoft.SqlServer.Dts.Runtime.Wrapper
Ensamblado: Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)
Sintaxis
'Declaración
Public Overridable Sub GetServerInfo ( _
bstrMachineName As String, _
<OutAttribute> ByRef serverVersion As String _
)
'Uso
Dim instance As ApplicationClass
Dim bstrMachineName As String
Dim serverVersion As String
instance.GetServerInfo(bstrMachineName, _
serverVersion)
public virtual void GetServerInfo(
string bstrMachineName,
out string serverVersion
)
public:
virtual void GetServerInfo(
[InAttribute] String^ bstrMachineName,
[OutAttribute] String^% serverVersion
)
abstract GetServerInfo :
bstrMachineName:string *
serverVersion:string byref -> unit
override GetServerInfo :
bstrMachineName:string *
serverVersion:string byref -> unit
public function GetServerInfo(
bstrMachineName : String,
serverVersion : String
)
Parámetros
- bstrMachineName
Tipo: System.String
The name of the server hardware to check for the SQL Server product version.
- serverVersion
Tipo: System.String%
When this method returns, contains the version number of the SQL Server product. This parameter is passed uninitialized.
Implementa
IDTSApplication100.GetServerInfo(String, String%)