Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8730857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:06:28+00:00 2026-06-13T09:06:28+00:00

I have a little problem :(, I have a data base that reached 1000

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:06:29+00:00Added an answer on June 13, 2026 at 9:06 am

    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:

    DECLARE @PartitionFunction sysname = 'YourPartitionFunctionName';
    
    SELECT t.name TableName
         , pf.name PartitionFunction
         , ps.name PartitionScheme
         , pst.partition_number
         , pst.used_page_count
         , row_count
    from sys.dm_db_partition_stats pst
    JOIN sys.partitions p ON pst.partition_id = p.partition_id
    JOIN    sys.tables t
            ON p.object_id = t.object_id
    JOIN    sys.indexes i
            ON p.object_id = i.object_id
            AND p.index_id = i.index_id
    JOIN    sys.allocation_units au
            ON p.hobt_id = au.container_id
    JOIN    sys.filegroups f
            ON au.data_space_id = f.data_space_id
    JOIN    sys.partition_schemes ps
            ON ps.data_space_id = i.data_space_id
    JOIN    sys.partition_functions pf
            ON ps.function_id = pf.function_id
    WHERE used_page_count > 0 
      AND pf.name = @PartitionFunction 
      AND pst.index_id IN (0,1)/*Remove Nonclustered index counts*/;
    

    You can also refer to my answer here for a table valued function that I use regularly for monitoring partition volume.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little problem with a query. I'm selecting data using the between
I have a little problem, I'm making project and I'm sending data from client
I have a little problem, probably easy for you. Im using Core Data. I
I have a little Problem with the app that I'm developing. In the App
I have a curious little problem. I have a service that needs to create
I have a little problem that I just cannot seem to solve. I have
I have a little problem with getting all data from SQLite database and showing
I have a little problem with inserting data in sqlite in Android. I wrote
I have a little problem in my query. My database at my local development
I have little problem with a replacement of a little part in an url.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.