Skip to content

Azure DB creation failing with EnsureDatabase.For.SqlDatabase method #5

@avijitey

Description

@avijitey

Hi,

While calling the EnsureDatabase.For.SqlDatabase(connectionString, 1020, DbUp.SqlServer.AzureDatabaseEdition.Standard, "SQL_Latin1_General_CP850_BIN2"); it's throwing System.Data.SqlClient.SqlException: 'Incorrect syntax near 'standard'.' I have attached the screenshot for your reference.

While going through the repository code I figured that it's forming incorrect syntax to create the DB, it's very minor. The Edition of the SQL Server enclosed with '', instead it should have '.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Bugs

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions