Azure SQL Database Development Environment

假装没事ソ 提交于 2021-02-16 14:03:06

问题


How can I setup SQL Azure Database for development. I currently have few SQL databases ProjectName-Development, ProjectName-Staging, ProjectName-Production ...

Is this the right way? This is getting more and more expensive.


回答1:


I would recommend (from experience) using Azure only for Staging and Production environments. SQL Server 2016 Developer Edition is free (so is SSMS) so you can do all of your local development ... locally. When you're ready to go to staging, you can then perform a schema compare via your database project (assuming you have one...if not, you should probably create one) and push the schema up to the Azure DB.

The main caveat to this is to be aware of the features that are available in on-premise SQL Server that are NOT available in Azure SQL (e.g. columnstore indexes are only available on the Premium Tier of Azure SQL, no SQL Agent in Azure SQL, tec.).

Links:

SQL Server Download:
https://www.microsoft.com/en-us/sql-server/sql-server-downloads

Feature Parity:
https://blogs.msdn.microsoft.com/azureedu/2016/07/15/what-features-are-not-supported-in-azure-sql-database/
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-transact-sql-information

Edit: As another user commented, you could put your Dev and Staging DBs in an Elastic Pool, but the cheapest Elastic Pool is ~$75/month currently. If you MUST have your DEV database in Azure, your cheapest option is to just make it a Basic tier for $5/month. Not sure what your budget is, but also putting the DBs in a VM is not technically Azure SQL then - it is On-Prem SQL Server on an Azure VM, which will then have feature parity with your local install (of course provided your local install is the same version of SQL Server).



来源:https://stackoverflow.com/questions/46199354/azure-sql-database-development-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!