Synonym Synonym Synonym Constructors

Definition

Overloads

Synonym() Synonym() Synonym()

Initializes a new instance of the Synonym class.

Synonym(Database, String) Synonym(Database, String)

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

Synonym(Database, String, String) Synonym(Database, String, String)

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

Synonym(Database, String, String, String, String, String) Synonym(Database, String, String, String, String, String)

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

Synonym(Database, String, String, String, String, String, String) Synonym(Database, String, String, String, String, String, String)

Initializes a new instance of the Synonym class on the specified database and with the specified name, schema, and base object.

Synonym() Synonym() Synonym()

Initializes a new instance of the Synonym class.

public:
 Synonym();
public Synonym ();
Public Sub New ()

Examples

Using Synonyms

Remarks

The default constructor initializes any fields to their default values.

Synonym(Database, String) Synonym(Database, String)

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

public:
 Synonym(Microsoft::SqlServer::Management::Smo::Database ^ database, System::String ^ name);
public Synonym (Microsoft.SqlServer.Management.Smo.Database database, string name);
Parameters
database
Database Database Database

A Database object that specifies the database to which the synonym belongs.

name
String String String

A String value that specifies the name of the synonym.

Examples

Using Synonyms

Synonym(Database, String, String) Synonym(Database, String, String)

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

public:
 Synonym(Microsoft::SqlServer::Management::Smo::Database ^ database, System::String ^ name, System::String ^ schema);
public Synonym (Microsoft.SqlServer.Management.Smo.Database database, string name, string schema);
Parameters
database
Database Database Database

A Database object that specifies the database to which the synonym belongs.

name
String String String

A String value that specifies the name of the synonym.

schema
String String String

A String value that specifies the schema for the synonym.

Examples

Using Synonyms

Synonym(Database, String, String, String, String, String) Synonym(Database, String, String, String, String, String)

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

public:
 Synonym(Microsoft::SqlServer::Management::Smo::Database ^ database, System::String ^ name, System::String ^ baseServer, System::String ^ baseDatabase, System::String ^ baseSchema, System::String ^ baseObject);
public Synonym (Microsoft.SqlServer.Management.Smo.Database database, string name, string baseServer, string baseDatabase, string baseSchema, string baseObject);
Parameters
database
Database Database Database

A Database object that specifies the database to which the synonym belongs.

name
String String String

A String value that specifies the name of the synonym.

baseServer
String String String

A String value that specifies the instance of SQL Server on which the synonym base object exists.

baseDatabase
String String String

A String value that specifies database on which the synonym base object exists.

baseSchema
String String String

A String value that specifies the schema for the synonym base object.

baseObject
String String String

A String value that specifies the synonym base object.

Examples

Using Synonyms

Synonym(Database, String, String, String, String, String, String) Synonym(Database, String, String, String, String, String, String)

Initializes a new instance of the Synonym class on the specified database and with the specified name, schema, and base object.

public:
 Synonym(Microsoft::SqlServer::Management::Smo::Database ^ database, System::String ^ name, System::String ^ schema, System::String ^ baseServer, System::String ^ baseDatabase, System::String ^ baseSchema, System::String ^ baseObject);
public Synonym (Microsoft.SqlServer.Management.Smo.Database database, string name, string schema, string baseServer, string baseDatabase, string baseSchema, string baseObject);
Parameters
database
Database Database Database

A Database object that specifies the database to which the synonym belongs.

name
String String String

A String value that specifies the name of the synonym.

schema
String String String

A String value that specifies the schema of the synonym.

baseServer
String String String

A String value that specifies the instance of SQL Server on which the synonym base object exists.

baseDatabase
String String String

A String value that specifies database on which the synonym base object exists.

baseSchema
String String String

A String value that specifies the schema for the synonym base object.

baseObject
String String String

A String value that specifies the synonym base object.

Examples

Using Synonyms

Applies to