다음을 통해 공유


Instance.DatabaseName Property

Gets or sets the name of the instance database.

네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

구문

‘선언
Public Property DatabaseName As String
public string DatabaseName { get; set; }
public:
property String^ DatabaseName {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_DatabaseName ()

/** @property */
public void set_DatabaseName (String value)
public function get DatabaseName () : String

public function set DatabaseName (value : String)

속성 값

A String, between 1 and 128 characters in length, that specifies the name of the instance database.

주의

In SQL Server 2005 Notification Services, you can specify the name of the instance database. This database can be a new or existing database. If the database already exists, Notification Services creates instance objects in the specified SchemaName of the existing database. If the database does not exist, Notification Services creates a new database with the specified name and creates instance objects in the specified SchemaName.

ms214748.note(ko-kr,SQL.90).gif중요:
The specified database must be using 90 compatibility mode.

If you do not specify the database name, Notification Services creates a new database with the name instanceNameNSMain, and creates all instance objects in the dbo schema.

When you delete an instance of Notification Services, Notification Services deletes the instance database only if Notification Services created the database. Otherwise, Notification Services only deletes the instance objects and the related application objects from the database.

For more information about database names, see the database_name parameter in CREATE DATABASE(Transact-SQL).

The following examples show how to specify a name for the instance database and a schema for instance objects:

myInstance.DatabaseName = "MyInstNSMain";
myInstance.SchemaName = "MyInstSchema";
myInstance.DatabaseName = "MyInstNSMain"
myInstance.SchemaName = "MyInstSchema"

스레드 보안

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.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

Instance Class
Instance Members
Microsoft.SqlServer.Management.Nmo Namespace

관련 자료

Notification Services 인스턴스 구성
DatabaseName Element (ICF)