question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with Single Deployment - Multiple Database approach

See original GitHub issue

Hi everyone, i am building a project where uses Single Deployment - Multiple Database. In my project, when i try to create a new tenant db with a specified connection string it throw an exception that the db was not created. Does CreateOrMigrateForTenant method of TenantManager class is not work? Are there docs for Single Deployment - Multiple Database approach. Thank for your support. My exception’s message: Instance failure.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ydang204commented, Aug 24, 2018

it’s work now. thank you 👍

1reaction
malimingcommented, Aug 24, 2018

Did I give a correct connection string? The format is correct, but the server name does not seem to connect successfully.


No need to escape characters when passing a connection string on the web interface, such as \\

Change data source=XXX\\SQLEXPRESS;initial catalog=LukeDatY;Trusted_Connection=True; to data source=XXX\SQLEXPRESS;initial catalog=LukeDatY;Trusted_Connection=True;

Read more comments on GitHub >

github_iconTop Results From Across the Web

Designing a platform: one database or multiple databases?
For data that is referenced by multiple services, data cached by one service is likely to be used soon after by another service....
Read more >
Handling failures when deploying to multiple databases ...
One approach that seems simplest to folks is wrapping the entire multi-database deployment into a single transaction.
Read more >
You're Using Too Many Databases. You Only Need One
Well, I'm here to tell you that you don't need to use multiple databases of your web apps. You only need one database:...
Read more >
Has anybody shipped a web app at scale with 1 DB per ...
I'm curious if anybody has taken the approach of provisioning one database per account? This means you'd have to run migrations per account...
Read more >
Multi-Tenant Single Application - Multiple Database #962
I am wondering if anyone has any experience in converting the framework to work with a database per tenant. With Azure Elastic DB...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found