Share via


IDatabaseFactory.CreateEmptyDatabase Method

Creates an empty IDatabase object (all collections are empty).

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

Syntax

'Declaration
Function CreateEmptyDatabase ( _
    server As IServer, _
    name As String, _
    collationInfo As CollationInfo, _
    isSystemObject As Boolean _
) As IDatabase
'Usage
Dim instance As IDatabaseFactory
Dim server As IServer
Dim name As String
Dim collationInfo As CollationInfo
Dim isSystemObject As Boolean
Dim returnValue As IDatabase

returnValue = instance.CreateEmptyDatabase(server, _
    name, collationInfo, isSystemObject)
IDatabase CreateEmptyDatabase(
    IServer server,
    string name,
    CollationInfo collationInfo,
    bool isSystemObject
)
IDatabase^ CreateEmptyDatabase(
    IServer^ server, 
    String^ name, 
    CollationInfo^ collationInfo, 
    bool isSystemObject
)
abstract CreateEmptyDatabase : 
        server:IServer * 
        name:string * 
        collationInfo:CollationInfo * 
        isSystemObject:bool -> IDatabase 
function CreateEmptyDatabase(
    server : IServer, 
    name : String, 
    collationInfo : CollationInfo, 
    isSystemObject : boolean
) : IDatabase

Parameters

  • isSystemObject
    Type: System.Boolean
    true to indicate that the empty database is a system object; otherwise, false.