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

  • Home
  • SEARCH
  • 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 7663439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:03:43+00:00 2026-05-31T14:03:43+00:00

My team is trying to run a script that is in source control to

  • 0

My team is trying to run a script that is in source control to create partitions and we’re running into the following error: CREATE/ALTER partition function failed as only a maximum of 1000 partitions can be created.

Part of script:

CREATE PARTITION FUNCTION [PFDailyPartition](DATETIME)
    AS RANGE RIGHT FOR VALUES ('01/01/2005 00:00:00'
 '01/02/2005 00:00:00'
 '01/03/2005 00:00:00'
 '01/04/2005 00:00:00'
 '01/05/2005 00:00:00'
 '01/06/2005 00:00:00'
 '01/07/2005 00:00:00'
 '01/08/2005 00:00:00'
 '01/09/2005 00:00:00'
 '01/10/2005 00:00:00'
 '01/11/2005 00:00:00'
 '01/12/2005 00:00:00'
 '01/13/2005 00:00:00'
 '01/14/2005 00:00:00'
 etc...

Running select * from sys.partition_range_values on our current setup shows that we have over 10,000 partitions.

Is there any way to get around this 1000 limit? We can’t figure out how we have this many partitions already.

Could it be an environmental difference between the two setups?

Thanks in advance!

  • 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-05-31T14:03:44+00:00Added an answer on May 31, 2026 at 2:03 pm

    Your partition function is creating separate partitions by day. That’s a lot of partitions! Since 2005, this would be roughly 365 * 7 = 2,555 partitions. Do you realy want separate partitions by day?

    According to this article, SQL Server 2008 SP2 and SQL Server 2008 R2 SP1 increased the limit to 15,000 partitions. Is there a service pack difference between the servers?

    Quoted from the article:

    Problem

    SQL Server 2005 introduced table and index partitioning. Partitioning
    can make large tables and indexes more manageable and scalable. For
    more information about partitioning, see Partitioned Tables and
    Indexes
    (http://msdn.microsoft.com/en-us/library/ms188706(v=SQL.100).aspx). In
    SQL Server 2005, SQL Server 2008, and SQL Server 2008 R2, the number
    of partitions is limited to 1,000.

    Customers primarily use partitioning to facilitate the management of
    large fact tables in data warehouses. Data warehouse customers
    commonly load data as a batch. Daily loads are the most common
    pattern, but increasingly customers want to load data more than once a
    day. With the limit of 1,000 partitions, if customers load daily, they
    can store less than three years of data in a partitioned table,
    whereas business requirements often mandate that data be retained for
    longer periods of time, such as seven years. The 1,000 partitions
    maximum becomes a limitation for customers in this scenario.

    If merging of partitions is too complex and time-consuming, customers
    prefer to have the flexibility to create a large number of partitions
    and use them as and when required. The 1,000 partitions maximum also
    becomes a limitation in this scenario.

    Solution

    In SQL Server 2008 SP2 and SQL Server 2008 R2 SP1, you can choose to
    enable support for 15,000 partitions at a database-level granularity
    by using the new sp_db_increased_partitions stored procedure
    . You can
    also disable support on a database (after it has been enabled) and set
    the limit on the number of partitions back to 1,000.

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

Sidebar

Related Questions

I'm trying to build and run ruby code that a team member wrote for
When trying to create a new team project with any of the default project
I'm trying to run a T4 template that opens a XML file and uses
I'm currently running Visual Studio Team System 2010 RC and I'm trying to get
Possible Duplicate: TFS 2010 Custom Build Activity TF215097 error I'm trying to create a
I am trying to run unit tests in my TeamCity build that require openJPA
I'm trying to get Team City to build my .NET solution and run my
I've just come onboard with a new team and I am trying to run
I'm trying to write a PowerShell script that will automate my IIS website deployments.
Trying to make a simple application in rails 3. If I create a team

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.