What’s the best way to give each user their own Azure database?

0
8
Asked By CoolCoder77 On

Hey everyone! I built a website, and I want every registered user to have their own separate database. Is there an Azure service that allows this while also giving me full control over the server? Any advice would be appreciated!

1 Answer

Answered By AzureWizard21 On

You can set up a single Azure SQL server and attach multiple databases to it. There’s definitely a limit to how many databases you can connect to one server, but it might be worth checking out the specifics. Just remember, you will pay for every database depending on its size and performance. Alternatively, if you go for an Azure SQL Managed Instance, you can create as many databases as you want without additional charges, but keep in mind that the managed instance itself can be pricey. Also, you're typically limited to around 100 or 200 databases in such instances. Just a heads-up, it feels like a design choice that might need to be reconsidered if each user isn't generating substantial revenue.

DevDude2020 -

I agree, your best bet is definitely to create one Azure SQL server and multiple databases. The limits are there, but trying to manage multiple users with a single database using something like tenant IDs isn't practical for privacy.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.