Closed GoogleCodeExporter closed 9 years ago
Sorry, missed this:
Elmah.dll version 1.0.9414.1441
Windows XP sp2
/k
Original comment by rosqui...@yahoo.com
on 6 Feb 2008 at 12:24
The results.rpt seems to have truncated data and I was really hoping to use it
to
load a SQL database to repro the same case. Do you think you could use the SQL
Management Studio to export the table into an Access database and which I can
then
import on my end? That would help a lot.
Original comment by azizatif
on 7 Feb 2008 at 9:26
Original comment by azizatif
on 7 Feb 2008 at 9:27
Here you have.
Thanks for helping.
/k
Original comment by rosqui...@yahoo.com
on 7 Feb 2008 at 12:44
Attachments:
Thanks for the data upload. I have been able to successfully import the data on
my
end reproduce your issue. The fault appears to be in the ELMAH_GetErrorsXml
stored
procedure and seems to revolve around the first SELECT (see below) statement:
-- Get the ID of the first error for the requested page
SET @StartRowIndex = @PageIndex * @PageSize + 1
print @StartRowIndex
SET ROWCOUNT @StartRowIndex
SELECT
@FirstTimeUTC = TimeUTC,
@FirstSequence = Sequence
FROM
ELMAH_Error
WHERE
Application = @Application
ORDER BY
TimeUTC DESC,
Sequence DESC
It seems to be returning always a row, even if the page index is beyond the
last
possible page. You can easily see the effects of this by running a query that
sets
the page index to a very large number that is beyond the last possible page.
You'll hear back once I have a fix. For now just wanted to share this finding.
Original comment by azizatif
on 7 Feb 2008 at 1:30
I have changed the title of issue since is more generally related to the SQL
200x
script and pretty much affects paging through data anywhere.
Original comment by azizatif
on 7 Feb 2008 at 1:59
I have attached a proposed path to the ELMAH_GetErrorsXml stored procedure. I
have
also separately attached a SQL script file that ALTERs the stored procedure and
which can be used for immediate testing.
kurtsune (/k), I'd appreciate your feedback here whether it addresses the issue.
Original comment by azizatif
on 7 Feb 2008 at 2:08
Attachments:
I changed the procedure.
I clicked the download.
It now works.
I get my 4 errors in the csv.
Many thanks!
Have a nice holiday.
/k
Original comment by rosqui...@yahoo.com
on 8 Feb 2008 at 10:20
Thanks for providing all the details to help get to the bottom of this issue.
Fixed
in r260.
Original comment by azizatif
on 8 Feb 2008 at 6:51
Original issue reported on code.google.com by
rosqui...@yahoo.com
on 6 Feb 2008 at 12:22Attachments: