다음을 통해 공유


Application.DatabaseName Property

Gets or sets the name of the application 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, specifying the name of the application database.

주의

Specify this property only if you are creating a new application. Existing applications already have a database, and the database name cannot be changed after creating the application. If you attempt to change a database name, Notification Services Management Objects (NMO) throws an exception.

If you do not specify a database name when creating a Notification Services application, the default database name is a concatenation of the instance name and the application name.

If you specify a DatabaseName, you should provide a SchemaName for all application database objects. The default schema is dbo.

Database names can be up to 128 characters in length. For more information about database names, see the database_name parameter in CREATE DATABASE(Transact-SQL).

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

The following example shows how to set the name of the application database and the schema for application objects:

myApplication.DatabaseName = "MyInstMyApp";
myApplication.SchemaName = "MyAppSchema";
myApplication.DatabaseName = "MyInstMyApp"
myApplication.SchemaName = "MyAppSchema"

스레드 보안

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 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

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

관련 자료

sp_dbcmptlevel(Transact-SQL)
응용 프로그램 데이터베이스 정의
DatabaseName Element (ADF)