Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Application.GetServerInfo Method (String, String)


Applies To: SQL Server 2016 Preview

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)

public void GetServerInfo(
	string server,
	out 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.

Legacy Code Example

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

static void Main(string[] args)
            Application app = new Application();
            String outParam;
            app.GetServerInfo("yourserver", out outParam);
            Console.WriteLine("Server version? " + outParam);
Return to top
© 2015 Microsoft