共用方式為


clsDatabase

[!附註]

  下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

An object of the ClassType clsDatabase provides a specific implementation of the Decision Support Objects (DSO) MDStore interface. This object provides collections, methods, and properties through the MDStore interface.

範例

Use the following code to create an object of ClassType clsDatabase:

' Assume an object (dsoServer) of ClassType clsServer exists
Dim dsoDatabase As DSO.MDStore ' Create an interface for the database.
' Use the AddNew method of the server's MDStores collection to create
' the new database:
Set dsoDatabase = dsoServer.MDStores.AddNew("MyDatabase")