Compartilhar via


Método CreateSqlConnection

Creates a connection to the server.

Namespace:  Microsoft.SqlServer.Management.MultiServerConnection
Assembly:  Microsoft.SqlServer.Management.MultiServerConnection (em Microsoft.SqlServer.Management.MultiServerConnection.dll)

Sintaxe

'Declaração
Public Function CreateSqlConnection As SqlConnection
'Uso
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

Valor de retorno

Tipo: System.Data.SqlClient. . :: . .SqlConnection
A SqlConnection which represents a connection to the server..