Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Brian, even though you appear to have solved your particular issue, I want to add a message here since this is one of the first Google search results for people having the [] square bracket problem in their database name.</p> <p>I have previously encountered this issue where the database name appears to have square brackets [] on azure. In my case it was not code first. Let's say I create a new database using the Azure portal, and name it Palladium. In order to get the connection string for it, I go to the dashboard page of the sql database and click the 'show connection strings' link that appears on the right. This connection string needs to be placed in your web.config file replacing the contents of the connectionstring="". Before doing that, notice that for some reason the connection string contains the string "Database=[Palladium]". I believe you have already noticed this. This is a problem.. I do not know why Azure insists on putting [] around the database name, but you must remove those square brackets from around the word Palladium before using it as your connection string. (Also don't forget to replace the string "{your_password_here}" with the actual password).</p> <p>That fixed my problem, and I have been doing this routinely for some months now without problems. Still don't know why Azure puts [] in the first place.</p> <p>I am thinking this solution would apply even to someone using codefirst since you would still need to create the database on Azure and get the connection string, since code first creates the tables, not the db itself.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload