共用方式為


Database 類別

定義

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

[System.Runtime.InteropServices.Guid("47922F3A-A6AF-4f2a-AE68-8B08E0CF38A8")]
public sealed class Database : Microsoft.AnalysisServices.Core.Database, ICloneable, IDisposable, Microsoft.AnalysisServices.IConnectionStringHolder, Microsoft.AnalysisServices.IMajorObject
[<System.Runtime.InteropServices.Guid("47922F3A-A6AF-4f2a-AE68-8B08E0CF38A8")>]
type Database = class
    inherit Database
    interface IMajorObject
    interface INamedComponent
    interface IModelComponent
    interface IComponent
    interface IDisposable
    interface ICloneable
    interface IConnectionStringHolder
Public NotInheritable Class Database
Inherits Database
Implements ICloneable, IConnectionStringHolder, IDisposable, IMajorObject
繼承
屬性
實作

建構函式

Database()

使用預設值,將表格式 Database 的新執行個體初始化。

Database(ModelType, Int32)

使用模型類型和相容性層級,將表格式 Database 物件的新執行個體初始化。

Database(String)

使用名稱將表格式 Database 的新執行個體初始化。

Database(String, String)

使用名稱和識別碼,將表格式 Database 的新執行個體初始化。

欄位

MaxIDLength

指定識別碼的最大長度。

(繼承來源 NamedComponent)
MaxNameLength

指定名稱的最大長度。

(繼承來源 NamedComponent)

屬性

Accounts

取得在資料庫項目中定義之帳戶類型的集合。

AggregationPrefix

取得或設定要在整個相關聯資料庫中用於彙總名稱的一般前置詞。

Annotations

取得與所有主要物件建立關聯之所有註解的集合。

(繼承來源 MajorObject)
Assemblies

取得與資料庫建立關聯的組件集合。

Collation

取得或設定資料庫的定序類型。

(繼承來源 Database)
CompatibilityLevel

取得或設定資料庫的相容性層級。

(繼承來源 Database)
CompatibilityMode

取得或設定資料庫的相容性層級。

(繼承來源 Database)
CreatedTimestamp

取得或設定物件的建立日期和時間。

(繼承來源 MajorObject)
Cubes

取得與資料庫建立關聯的 Cube 集合。

DatabasePermissions

取得與資料庫項目建立關聯的資料庫權限項目集合。

DataSourceImpersonationInfo

取得或設定與資料庫建立關聯的模擬資訊。

DataSources

取得與資料庫建立關聯的資料來源集合。

DataSourceViews

取得與資料庫建立關聯的資料來源檢視集合。

DbStorageLocation

取得或設定資料庫的儲存位置。

(繼承來源 Database)
Description

取得或設定元件的描述。

(繼承來源 Database)
Dimensions

取得與資料庫建立關聯的維度集合。

DirectQueryMode

取得或設定目前資料庫所使用的直接查詢模式。

DismissedValidationResults

取得與資料庫建立關聯的 DismissedValidationResult 集合。

(繼承來源 Database)
DismissedValidationRules

取得與資料庫建立關聯的 DismissedValidationRule 集合。

(繼承來源 Database)
EstimatedSize

取得或設定父資料庫的唯讀估計大小 (以位元組為單位)。

(繼承來源 Database)
FriendlyName

取得元件的使用者易記名稱。

(繼承來源 NamedComponent)
ID

取得或設定元件的識別碼。

(繼承來源 NamedComponent)
ImagePath

取得或設定影像路徑。

(繼承來源 Database)
ImageUniqueID

取得或設定影像的唯一識別碼。

(繼承來源 Database)
ImageUrl

取得或設定要顯示之資料庫影像的 URL 路徑。

(繼承來源 Database)
ImageVersion

取得或設定資料庫中影像的版本。

(繼承來源 Database)
IsInTransaction

取得值,指出資料庫是否會受目前交易影響。

IsLoaded

取得值,指出是否已載入 MajorObject。

(繼承來源 MajorObject)
KeyForCollection

取得集合中使用的索引鍵。

(繼承來源 NamedComponent)
Language

取得或設定資料庫的語言值。

(繼承來源 Database)
LastProcessed

取得或設定上次處理物件的 DateTime。

(繼承來源 ProcessableMajorObject)
LastSchemaUpdate

取得或設定上次更新物件結構描述的日期和時間。

(繼承來源 MajorObject)
LastUpdate

取得或設定資料庫的上次更新時間。

(繼承來源 Database)
MasterDataSourceID

取得或設定資料庫的主要資料來源識別碼。

MiningStructures

取得與資料庫建立關聯的採礦結構集合。

Model

取得 Database 的子 Model

ModelType

取得或設定已從中部署資料庫之模型的類型。 預期的值包含預設值 (與多維度相同)、多維度或表格式。

(繼承來源 Database)
Name

取得或設定元件的名稱。

(繼承來源 NamedComponent)
OwningCollection

取得或設定包含 ModelComponent 的集合。

(繼承來源 ModelComponent)
Parent

取得 Database 物件的父 Server 物件。

ProcessingPriority

取得或設定資料庫的處理優先權。

ReadWriteMode

取得或設定資料庫的 ReadWriteMode。

(繼承來源 Database)
Roles

取得與資料庫建立關聯的角色集合。

Site

取得或設定與元件建立關聯的網站。

(繼承來源 NamedComponent)
SiteID

取得或設定與元件相關聯之網站的識別碼。

(繼承來源 NamedComponent)
State

取得或設定這個目前執行個體的 AnalysisState。

(繼承來源 ProcessableMajorObject)
StorageEngineUsed

取得或設定目前資料庫中使用的儲存引擎。

(繼承來源 Database)
Translations

取得與資料庫建立關聯的翻譯集合。

(繼承來源 Database)
Version

取得或設定資料庫版本。

(繼承來源 Database)
Visible

取得或設定與資料庫建立關聯的可見性布林值屬性。

(繼承來源 Database)

方法

AddToContainer(IContainer)

將資料庫新增至容器

(繼承來源 Database)
AfterInsert(Int32)

新增到指定的索引位置之後顯示 ModelComponent 物件。

(繼承來源 ModelComponent)
AfterMove(Int32, Int32)

移動到指定的索引之後顯示 ModelComponent 物件。

(繼承來源 ModelComponent)
AfterRemove(ModelComponentCollection)

在移除 ModelComponent 物件後顯示 ModelComponentCollection。

(繼承來源 ModelComponent)
Backup(BackupInfo)

針對資料庫的備份作業,以 BackupInfo 資訊提供程式設計的存取方式。

(繼承來源 Database)
Backup(String)

針對資料庫的備份作業,以指定檔案提供程式設計的存取方式。

(繼承來源 Database)
Backup(String, Boolean)

針對資料庫的備份作業,以指定檔案及 AllowOverWrite 指示提供程式設計的存取方式。

(繼承來源 Database)
Backup(String, Boolean, Boolean)

針對資料庫的備份作業,以指定檔案、AllowOverWrite 指示,以及 BackupRemotePartitions 指示提供程式設計的存取方式。

(繼承來源 Database)
Backup(String, Boolean, Boolean, BackupLocation[])

針對資料庫的備份作業,以指定檔案、AllowOverWrite 指示、BackupRemotePartitions 指示以及位置資訊提供程式設計的存取方式。

(繼承來源 Database)
Backup(String, Boolean, Boolean, BackupLocation[], Boolean)

針對資料庫的備份作業,以指定檔案、AllowOverWrite 指示、BackupRemotePartitions 指示、位置資訊以及 ApplyCompression 指示提供程式設計的存取方式。

(繼承來源 Database)
Backup(String, Boolean, Boolean, BackupLocation[], Boolean, String)

針對資料庫的備份作業,以指定檔案、AllowOverWrite 指示、BackupRemotePartitions 指示、位置資訊、ApplyCompression 指示及密碼提供程式設計的存取方式。

(繼承來源 Database)
BeforeRemove(Boolean)

在清除之前移除 ModelComponent 物件。

(繼承來源 ModelComponent)
CanProcess(ProcessType)

指出 Cube 是否可以執行指定的處理。

(繼承來源 Database)
Clone()

傳回物件的複製。

Clone(Boolean)

建立 MajorObject 物件的新複本。

(繼承來源 MajorObject)
CopyTo(Database)

將此物件的內容複製到另一個物件 (目的地)。

CopyTo(MajorObject, Boolean)

將物件複製到指定的目的地。 請勿直接在程式碼中參考此成員。 其支援 Analysis Services 基礎結構,在後續的版本中將予以隱藏。

(繼承來源 Database)
CopyTo(ModelComponent)

將 ModelComponent 物件複製到指定的物件。

(繼承來源 ModelComponent)
CopyTo(NamedComponent)

將 NamedComponent 物件複製到指定的物件。

(繼承來源 NamedComponent)
Detach()

卸離未使用的資料庫。

(繼承來源 Database)
Detach(String)

使用指定的密碼卸離資料庫。

(繼承來源 Database)
Drop()

移除目前的物件並更新伺服器。

(繼承來源 MajorObject)
Drop(DropOptions)

使用指定的選項,移除目前的物件並更新伺服器。

(繼承來源 MajorObject)
Drop(DropOptions, XmlaWarningCollection)

使用指定的選項,移除目前的物件並更新伺服器。 在指定的警告物件上傳回卸除作業所產生的警告。

(繼承來源 MajorObject)
Drop(DropOptions, XmlaWarningCollection, ImpactDetailCollection)

使用指定的選項,移除目前的物件並更新伺服器。 在指定的警告變數上傳回卸除作業所產生的警告,並且在指定的 impactResult 變數上傳回作業中受影響物件的結果。

(繼承來源 MajorObject)
Drop(DropOptions, XmlaWarningCollection, ImpactDetailCollection, Boolean)

使用指定的選項,移除目前的物件並更新伺服器。 在指定的警告變數上傳回卸除作業所產生的警告,並且在指定的 impactResult 變數上傳回作業中受影響物件的結果。

(繼承來源 MajorObject)
GetConnectedParentServer()

取得要與資料庫物件連接的的父伺服器。

(繼承來源 Database)
GetCreateReferences(Hashtable, Boolean, Boolean)

取得 Hashtable 來建立參考。

(繼承來源 MajorObject)
GetDependents(Hashtable)

將相依性取得放入指定的 Hashtable 中。

(繼承來源 MajorObject)
GetDropDependents(Hashtable, Hashtable)

取得卸除相依項目。

(繼承來源 MajorObject)
GetReferences(Hashtable, Boolean)

取得資料庫所參考的物件。

GetUpdateOverwrites(Boolean)

取得覆寫更新之 MajorObject 的 Hashtable 物件。

(繼承來源 MajorObject)
LinkDimension(Dimension, String)

將資料庫連結到指定的維度。

LinkDimension(Dimension, String, String)

將資料庫連結到指定的維度。

Process()

處理 ProcessableMajorObject。

(繼承來源 ProcessableMajorObject)
Process(ProcessType)

使用指定的處理類型,處理 ProcessableMajorObject。

(繼承來源 ProcessableMajorObject)
Process(ProcessType, ErrorConfiguration)

使用指定的處理類型和錯誤處理設定,處理 ProcessableMajorObject。

(繼承來源 ProcessableMajorObject)
Process(ProcessType, ErrorConfiguration, XmlaWarningCollection)

使用指定的處理類型、錯誤處理設定和警告,處理 ProcessableMajorObject。

(繼承來源 ProcessableMajorObject)
Process(ProcessType, ErrorConfiguration, XmlaWarningCollection, ImpactDetailCollection)

使用指定的處理類型、錯誤處理設定、警告和影響詳細資料,處理 ProcessableMajorObject。

(繼承來源 ProcessableMajorObject)
Process(ProcessType, ErrorConfiguration, XmlaWarningCollection, ImpactDetailCollection, Boolean)

使用指定的處理類型、錯誤處理設定、警告和影響詳細資料,處理 ProcessableMajorObject。

(繼承來源 ProcessableMajorObject)
Process(ProcessType, IBinding)

使用指定的處理類型和繫結,處理 ProcessableMajorObject。

(繼承來源 ProcessableMajorObject)
Process(ProcessType, WriteBackTableCreation)

使用指定的處理類型和回寫選項,處理 ProcessableMajorObject。

(繼承來源 ProcessableMajorObject)
Refresh()

從伺服器定義更新物件。

(繼承來源 MajorObject)
Refresh(Boolean)

更新來自伺服器定義的物件,而且如果指定的話,也更新載入的相依物件。

(繼承來源 MajorObject)
Refresh(Boolean, RefreshType)

更新來自伺服器定義的物件,而且如果指定的話,也更新載入的相依物件。

(繼承來源 MajorObject)
RemoveFromContainer(IContainer)

將 ModelComponent 物件從指定的容器中移除。

(繼承來源 ModelComponent)
Reset()

將元件重設為其初始狀態。

(繼承來源 NamedComponent)
Submit()

提交 ModelComponent 物件。

(繼承來源 ModelComponent)
Submit(Boolean)

提交 ModelComponent 物件。

(繼承來源 ModelComponent)
ToString()

傳回字串。字串表示目前的具名元件。

(繼承來源 NamedComponent)
Update()

使用預設值來更新相依物件,將目前物件的伺服器定義更新為實際值。

(繼承來源 MajorObject)
Update(UpdateOptions)

使用指定的選項來更新相依物件,將目前物件的伺服器定義更新為實際值。

(繼承來源 MajorObject)
Update(UpdateOptions, UpdateMode)

使用指定的選項來更新相依物件,將目前物件的伺服器定義更新為實際值。

(繼承來源 MajorObject)
Update(UpdateOptions, UpdateMode, XmlaWarningCollection)

使用指定的選項來更新相依物件,將目前物件的伺服器定義更新為實際值,並且報告作業所產生的任何警告。

(繼承來源 MajorObject)
Update(UpdateOptions, UpdateMode, XmlaWarningCollection, ImpactDetailCollection)

使用指定的選項來更新相依物件,將目前物件的伺服器定義更新為實際值,報告作業所產生的任何警告,並且從作業中傳回受影響的物件。

(繼承來源 MajorObject)
Update(UpdateOptions, UpdateMode, XmlaWarningCollection, ImpactDetailCollection, Boolean)

使用指定的選項來更新相依物件,將目前物件的伺服器定義更新為實際值,報告作業所產生的任何警告,並且從作業中傳回受影響的物件。 如果 analyzeImpactOnly 為 true,影響分析作業執行時不會進行更新作業。

(繼承來源 MajorObject)
Validate(ValidationErrorCollection)

驗證它附加至的元素;傳回集合中遇到的任何錯誤。

(繼承來源 ModelComponent)
Validate(ValidationErrorCollection, Boolean)

驗證它附加至的元素;傳回集合中遇到的任何錯誤。 也包含可傳回詳細錯誤的參數。

(繼承來源 ModelComponent)
Validate(ValidationErrorCollection, Boolean, ServerEdition)

判斷資料庫是否有效。

Validate(ValidationResultCollection)

指出 MajorObject 是否有效。

(繼承來源 MajorObject)
Validate(ValidationResultCollection, ValidationOptions)

指出 MajorObject 是否有效。

(繼承來源 MajorObject)
Validate(ValidationResultCollection, ValidationOptions, ServerEdition)

指出 MajorObject 是否有效。

(繼承來源 MajorObject)

明確介面實作

ICloneable.Clone()

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

IConnectionStringHolder.ReturnPassword

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

IDeserializationCallback.OnDeserialization(Object)

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

(繼承來源 MajorObject)
IDeserializationStartCallback.OnDeserializationBegin(Object)

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

(繼承來源 MajorObject)
IFormattable.ToString(String, IFormatProvider)

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

(繼承來源 NamedComponent)
IHostableComponent.Host

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

(繼承來源 ModelComponent)
IMajorObject.BaseType

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

IMajorObject.CreateBody()

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

IMajorObject.DependsOn(IMajorObject)

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

IMajorObject.ObjectReference

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

IMajorObject.ParentDatabase

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

IMajorObject.ParentServer

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

IMajorObject.Path

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

IMajorObject.WriteRef(XmlWriter)

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

IModelComponent.FriendlyPath

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

(繼承來源 ModelComponent)
IModelComponent.OwningCollection

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

(繼承來源 ModelComponent)
IProcessable.LastProcessed

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

(繼承來源 ProcessableMajorObject)
IProcessable.State

定義 Microsoft Analysis Services 資料庫。 此類別無法獲得繼承。

(繼承來源 ProcessableMajorObject)

擴充方法

ToTmdl(Database)

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

根據 Secified 資料庫的元數據來建置一組 TMDL 檔。

ToTmdl(Database, MetadataSerializationOptions)

重要事項:TMDL 仍在預覽狀態,且 API 介面在 GA 之前可能仍會修改!

根據 Secified 資料庫的元數據來建置一組 TMDL 檔。

適用於