Compartir a través de


Synonym Constructor (Database, String)

Initializes a new instance of the Synonym class on the specified database and with the specified name.

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

Sintaxis

'Declaración
Public Sub New ( _
    database As Database, _
    name As String _
)
public Synonym (
    Database database,
    string name
)
public:
Synonym (
    Database^ database, 
    String^ name
)
public Synonym (
    Database database, 
    String name
)
public function Synonym (
    database : Database, 
    name : String
)

Parámetros

  • database
    A Database object that specifies the database to which the synonym belongs.
  • name
    A String value that specifies the name of the synonym.

Notas

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Ejemplo

How to: Create a Synonym in Visual Basic .NET

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

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

Otros recursos

Using Synonyms
CREATE SYNONYM (Transact-SQL)