How to create a partition in Azure SQL Table

人盡茶涼 提交于 2020-05-01 09:06:13

问题


I am going to create a SQL tables in Azure SQL database, and I want to create a partition of table, but I don't know how to do that, can any one show me some demo example or query to perform this. I am using SQL management studio to connect my Azure db.


回答1:


We take advantage of partitioning SQL Azure tables. We use it so we can rapidly truncate the oldest partitions of data.

We have a great blog post that walks through step by step how to do it: https://stackify.com/how-to-partition-tables-in-azure-sql/




回答2:


I know this is an old post but this may help:

https://www.mssqltips.com/sqlservertip/3494/azure-sql-database--table-partitioning/

I'm not sure what your use case is but Elastic Database Tools for Azure SQL Database allow you to implement sharding if you are partitioning the table because of its size.

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-elastic-scale-introduction



来源:https://stackoverflow.com/questions/38504615/how-to-create-a-partition-in-azure-sql-table

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