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
- server
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IServer
The IServer object that is the parent of the database object.
- name
Type: System.String
The name of the database object.
- collationInfo
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.CollationInfo
The CollationInfo object that is used by the database object.
- isSystemObject
Type: System.Boolean
true to indicate that the empty database is a system object; otherwise, false.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabase
An empty IDatabase object.
See Also
Reference
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace