MultiServerSqlConnectionInfo.CreateSqlConnection Method
Creates a connection to the server.
Namespace: Microsoft.SqlServer.Management.MultiServerConnection
Assembly: Microsoft.SqlServer.Management.MultiServerConnection (in Microsoft.SqlServer.Management.MultiServerConnection.dll)
Syntax
'Declaration
Public Function CreateSqlConnection As SqlConnection
'Usage
Dim instance As MultiServerSqlConnectionInfo
Dim returnValue As SqlConnection
returnValue = instance.CreateSqlConnection()
public SqlConnection CreateSqlConnection()
public:
SqlConnection^ CreateSqlConnection()
member CreateSqlConnection : unit -> SqlConnection
public function CreateSqlConnection() : SqlConnection
Return Value
Type: System.Data.SqlClient.SqlConnection
A SqlConnection which represents a connection to the server..