次の方法で共有


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.

ms138101.note(ja-jp,SQL.90).gifメモ :
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 の参考資料の入手