I have a little problem :(, I have a data base that reached 1000 partitions for one partition_schema, taking a look on the internet I found that it is the top but it can be increased to 15000. I can’t increase it to 15000, the solution that I can do is merge some partitions.
I have a partition by day since 20100101 and actually there is 999, it can’t increase anymore, so I want to merge the partitions from one month, but before that I want to do a backup of the information that is going to be affected, BUT I don’t know which tables are affected by the function that has 999 ranges.
Q. How can I find out wich tables are affected by the function? or which is the best way to asure that merging the partitions I won’t lose data?
You shouldn’t lose data merging partitions. Create a backup though, just in case.
Here’s a query that can give you some insight into what tables are using the partition function:
You can also refer to my answer here for a table valued function that I use regularly for monitoring partition volume.