다음을 통해 공유


DBOption Object

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The DBOption object represents the settings for Microsoft SQL Server database options for a specific SQL Server database.

현재 개체를 보여 주는 SQL-DMO 개체 모델

Properties

AssignmentDiag Property

DefaultCursor Property

AutoClose Property

Offline Property

AutoCreateStat Property

QuoteDelimiter Property

AutoShrink Property

ReadOnly Property

AutoUpdateStat Property

RecursiveTriggers Property

ColumnsNullByDefault Property

SelectIntoBulkCopy Property

CompareNull Property

SingleUser Property

ContactNull Property

TornPageDetection Property

CursorCloseOnCommit Property

TruncateLogOnCheckpoint Property

DBOUseOnly Property

 

Methods

Refresh Method

주의

SQL Server database options control access to and behaviors for a specific SQL Server database. You can use the DBOption object to set the values for SQL Server database options.

To set a SQL Server database option

  1. Get the DBOption object from a Database object of a connected SQLServer object.

  2. Set properties to reflect the change you want in behavior. For example, set the value of the ReadOnly property to TRUE to enable read-only access to the database.

Changes to DBOption properties are reflected in the SQL Server database as they are made.

[!참고] The DBOption object is compatible with instances of SQL Server version 7.0 and later. However, the DBOption2 object extends the functionality of the DBOption object for use with features that were introduced in SQL Server 2000.

참고 항목

참조

DBOption2 Object

도움말 및 정보

SQL Server 2005 지원 받기