다음을 통해 공유


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")