Compartir a través de


LinkedServer.ProviderString Property

Gets or sets the connection string used to connect to a linked server by way of the OLE DB Provider.

Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Public Property ProviderString As String
public string ProviderString { get; set; }
public:
property String^ ProviderString {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_ProviderString ()

/** @property */
public void set_ProviderString (String value)
public function get ProviderString () : String

public function set ProviderString (value : String)

Valor de propiedad

A String value that specifies the connection string used to connect to the link server by way of the OLE DB Provider.

Notas

The connection string is used as an alternative to setting the DataSource and ProviderName properties. Use the ProviderString property when complex connection settings are required. Refer to the OLE DB Provider settings for the particular product and provider for further information about the syntax for the connection string.

Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.

Ejemplo

How to: Link to an OLE-DB Provider Server in Visual Basic .NET

Seguridad para subprocesos

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

LinkedServer Class
LinkedServer Members
Microsoft.SqlServer.Management.Smo Namespace

Otros recursos

Using Linked Servers in SMO
Vincular servidores
sp_addlinkedserver (Transact-SQL)