Compartir a través de


Connection Propiedad

Gets or sets the name of the connection manager that connects to the relational database management system (RDBMS) where the Execute SQL task is run.

Espacio de nombres:  Microsoft.SqlServer.Dts.Tasks.ExecuteSQLTask
Ensamblado:  Microsoft.SqlServer.SQLTask (en Microsoft.SqlServer.SQLTask.dll)

Sintaxis

'Declaración
Public Property Connection As String
    Get
    Set
'Uso
Dim instance As ExecuteSQLTask
Dim value As String

value = instance.Connection

instance.Connection = value
public string Connection { get; set; }
public:
virtual property String^ Connection {
    String^ get () sealed;
    void set (String^ value) sealed;
}
abstract Connection : string with get, set
override Connection : string with get, set
final function get Connection () : String
final function set Connection (value : String)

Valor de la propiedad

Tipo: System. . :: . .String
A String that contains the name of the connection manager.

Implementa

IDTSExecuteSQL. . :: . .Connection

Ejemplos

For a community sample that demonstrates how to set the name of the connection manager, see the blog entry, Creating packages in code -- Execute SQL Task, on sqlis.com.