DatabaseAdapterBase 類別

定義

public class DatabaseAdapterBase : Microsoft.SqlServer.Management.Common.IAlterable, Microsoft.SqlServer.Management.Common.IRefreshable
type DatabaseAdapterBase = class
    interface IRefreshable
    interface IAlterable
Public Class DatabaseAdapterBase
Implements IAlterable, IRefreshable
繼承
DatabaseAdapterBase
衍生
實作

建構函式

名稱 Description
DatabaseAdapterBase(Database)

屬性

名稱 Description
AutoClose

如果資料庫的自動關閉設定為 ON,則會回傳 true。

AutoShrink

如果資料庫啟用自動縮減選項,則會回傳為真。

Database
DelayedDurability

回傳資料庫延遲耐用度設定。

IsLedger

如果資料庫有 Ledger ON,則會回傳 true。

IsSystemObject
LastBackupDate
LastLogBackupDate
PageVerify

若資料庫的PAGE_VERIFY設定為 CHECKSUM,則回傳為 true。

ReadOnly

若資料庫為唯讀,則回傳 true。

RecoveryModel

回傳資料庫復原模型。

Size
Status
TargetRecoveryTime

回傳資料庫的目標恢復時間設定。

Trustworthy

方法

名稱 Description
Alter()
DataFileVolumeNotIn(List<String>)

此方法比較檔案群組中檔案中的磁碟代號與 checkDrives 參數中的磁碟代號。 如果檢查磁碟區清單中有任何一個磁碟代號,則該函式回傳 true,否則會回傳 false。

GetVolume(String)
Refresh()

適用於