patternsqlMinor
Separate SQL Server or just separate SQL Database for test and production?
Viewed 0 times
productionsqljustandseparatedatabasefortestserver
Problem
I'm new to SQL Server, so this may be more of a SQL Server management question.
I'm creating test and production databases for a service, and I imagine I'll be wiping the test database quite a lot. Additionally, I'm going to want different replication and audit logging strategies.
Does it make sense to have both SQL Databases on the same SQL Server, which seems to be what the Azure Portal makes easiest to manage, or does it make more sense to create a separate logical SQL Server for the test and production databases?
I'm creating test and production databases for a service, and I imagine I'll be wiping the test database quite a lot. Additionally, I'm going to want different replication and audit logging strategies.
Does it make sense to have both SQL Databases on the same SQL Server, which seems to be what the Azure Portal makes easiest to manage, or does it make more sense to create a separate logical SQL Server for the test and production databases?
Solution
Go with a separate logical server:
You might want to use the same server for a database if:
- It is going to cost the same because you are charged on the tier of the database not the database server.
- By providing separate servers you provide isolation between the two databases protecting one from the other.
- Unless you use contained users your users will be shared between Test and Production, if you happen to use the same user for both databases a change of the password in production would also require the same change in Test.
You might want to use the same server for a database if:
- You are creating a very large number of Databases across many Dev/Test environments as there is a limit to the total number of SQL Servers.
- You have two databases that need to be deployed as part of the same ARM template.
Context
StackExchange DevOps Q#787, answer score: 8
Revisions (0)
No revisions yet.