Share via


IDatabaseFactory Interface

Defines methods that are used to create database objects.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Interface IDatabaseFactory
'Usage
Dim instance As IDatabaseFactory
public interface IDatabaseFactory
public interface class IDatabaseFactory
type IDatabaseFactory =  interface end
public interface IDatabaseFactory

The IDatabaseFactory type exposes the following members.

Methods

  Name Description
Public method Create(IDatabase) Creates an IMutableDatabase object that is a clone of the specified IDatabase object.
Public method Create(IServer, String, CollationInfo) Creates an IMutableDatabase object that belongs to the specified IServer object and has the specified name.
Public method CreateEmptyDatabase Creates an empty IDatabase object (all collections are empty).

Top