Delen via


TeamFoundationDataTierComponent.CreateDatabase Method

Creates a database with specified name and collation. If collation is null or empty string, then the database is created with server's default collation.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Sub CreateDatabase ( _
    databaseName As String, _
    collation As String _
)
public void CreateDatabase(
    string databaseName,
    string collation
)
public:
void CreateDatabase(
    String^ databaseName, 
    String^ collation
)
member CreateDatabase : 
        databaseName:string * 
        collation:string -> unit
public function CreateDatabase(
    databaseName : String, 
    collation : String
)

Parameters

  • databaseName
    Type: System.String

    The name of the database to create.

.NET Framework Security

See Also

Reference

TeamFoundationDataTierComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace