Jump to content


  • 0
wmmayms

SMS 2003 Report Value 1000 Row Limit

Question

If you create a report with a prompt you sometimes get more then 1000 results, which means you won´t be able to select all of them since SMS has a limit of 1000 rows.

 

Example (when you click the values button it might look something like this):

post-2500-12510904965501_thumb.jpg

 

Here is how to change so you will see all records in the "values" list:

1. Log onto the primary SMS site server or the server that is your reporting server.

2. Go to C:\Inetpub\wwwroot\SMSReporting and take a backup of your file called FilterSample.asp

3. Go to C:\Inetpub\wwwroot\SMSReporting and edit the file FilterSample.asp with Notepad.

 

4. Search for the below lines (marked in red):

'this is the number of 'Values'

intRecordCount = .GetRecordCount()

intMaxValuesRecordCount = .GetMaxValuesRowcount()

 

Replace with:

'this is the number of 'Values'

intRecordCount = .GetRecordCount()

'intMaxValuesRecordCount = .GetMaxValuesRowcount()

 

5. Search for the below lines (marked in red):

Set FieldNames = .FieldNames

flgEmpty = 0

ReportRows = .GetRows(.GetMaxValuesRowcount())'to limit Values... list

intColumnsCount = UBound(ReportRows, 1)

intRowsCount = UBound(ReportRows, 2)

 

Replace with:

Set FieldNames = .FieldNames

flgEmpty = 0

ReportRows = .GetRows '(.GetMaxValuesRowcount())'to limit Values... list

intColumnsCount = UBound(ReportRows, 1)

intRowsCount = UBound(ReportRows, 2)

 

6. Save and exit.

 

If you update your report it should now look like this instead:

post-2500-12510911608094_thumb.jpg

 

Cheers!

 

Here is Technets version of the same thing

Edited by anyweb
added Technet Link

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.