Skip to Content
author's profile photo Former Member
Former Member

How to find tables which has more than 1000 Partitions

Hi All,

Is there any other way to find out the tables which has more than 1000 Partitions ?

Apart from SAP report RSDD_MSSQL_CUBEANALYZE. Because this report is not working for me as job getting cancel again and again with ABAP dump DBIF_DSQL2_SQL.I already check SAP Note 1309838, but itu2019s not applicable for us because we are on highest support package level SAP_BW 701 SP06.

Thanks,

Harshal

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jul 18, 2010 at 07:28 PM

    Hi,

    yes, there is an easy way to find these table with more than 1000 partitions. There are none.

    SQL Server has a hard limit of 1000 partitions per table, so there will be not table with more than 1000

    partitions.

    Regards

    Clas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2010 at 08:34 AM

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2012 at 10:56 AM

    If you are running SQL Server as your database platform run this query:

    select o.object_id,o.name,p.Partition_count from sys.objects o

    inner join

    (select object_id,count(distinct partition_number) as Partition_count

    from sys.partitions

    group by object_id)

    p

    on o.object_id = p.object_id

    where o.type = 'U'

    order by p.Partition_count desc

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.