如果我在 table 中删除分区会怎样?

What happens if I drop partitions in a table?

我对分区没有什么疑问,我打算删除 table1 中的现有分区 scheme/function,然后将新分区 scheme/function 指向 table1(我知道如何继续这个过程,但在此之前我想知道一些 suggestions/answers 以下查询)

  1. 如果我删除 old/existing 分区 scheme/function 和 table 中的数据,旧 partition.ndf 文件中的数据会怎样? (已删除/未修改)

  2. 如果我删除 old/existing 分区 scheme/function 和 table 中的数据, table 中的数据会怎样? (会不会有记录丢失)

谢谢

我提出的问题终于有了答案。

  1. 即使分区是从现有的 table 中删除的,filegroup/files 也会有它的数据。分区删除后,如果任何数据被添加到 table,那么这些数据将不会出现在 filegroup/files.

  2. 这种情况下不会有任何数据丢失。