GetServerInfo Method

Application::GetServerInfo Method (String^, String^%)


Returns the SQL Server version number of the SQL Server product installed on the target server. 

Namespace:   Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

void GetServerInfo(
	String^ server,
	[OutAttribute] String^% serverVersion


Type: System::String^

The name of the server hardware to check for the SQL Server product version.

Type: System::String^%

The version number of the SQL Server product, defined as an out parameter.

The default value of this property is 9.

The following example retrieves the SQL Server version number from the specified server.

No code example is currently available or this language may not be supported.
Return to top
© 2016 Microsoft