Partager via


TeamFoundationDatabaseManagementService.CreateDatabase Method

Creates a physical database on the specified data tier with specified collation. If collation is null or emptry string, server's default collation will be used.

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

Syntax

'Declaration
Public Function CreateDatabase ( _
    deploymentRequestContext As TeamFoundationRequestContext, _
    databaseName As String, _
    collation As String, _
    poolName As String, _
    dataTierConnectionString As String, _
    databaseType As TeamFoundationDatabaseType, _
    logger As ITFLogger _
) As TeamFoundationDatabaseProperties
public TeamFoundationDatabaseProperties CreateDatabase(
    TeamFoundationRequestContext deploymentRequestContext,
    string databaseName,
    string collation,
    string poolName,
    string dataTierConnectionString,
    TeamFoundationDatabaseType databaseType,
    ITFLogger logger
)
public:
TeamFoundationDatabaseProperties^ CreateDatabase(
    TeamFoundationRequestContext^ deploymentRequestContext, 
    String^ databaseName, 
    String^ collation, 
    String^ poolName, 
    String^ dataTierConnectionString, 
    TeamFoundationDatabaseType databaseType, 
    ITFLogger^ logger
)
member CreateDatabase : 
        deploymentRequestContext:TeamFoundationRequestContext * 
        databaseName:string * 
        collation:string * 
        poolName:string * 
        dataTierConnectionString:string * 
        databaseType:TeamFoundationDatabaseType * 
        logger:ITFLogger -> TeamFoundationDatabaseProperties
public function CreateDatabase(
    deploymentRequestContext : TeamFoundationRequestContext, 
    databaseName : String, 
    collation : String, 
    poolName : String, 
    dataTierConnectionString : String, 
    databaseType : TeamFoundationDatabaseType, 
    logger : ITFLogger
) : TeamFoundationDatabaseProperties

Parameters

  • poolName
    Type: System.String

    Connection string to the SQL Server/SQL Azure on which the database must be created.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseProperties
TeamFoundationDatabaseProperties for the created database.

.NET Framework Security

See Also

Reference

TeamFoundationDatabaseManagementService Class

Microsoft.TeamFoundation.Framework.Server Namespace