SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Preserving data-set for later use in printable version (keep resultset same)


Preserving data-set for later use in printable version (keep resultset same)

Author
Message
Shamshad Ali
Shamshad Ali
Say Hey Kid
Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)

Group: General Forum Members
Points: 694 Visits: 590
I have a simple classic ASP website using SQL Server 200, with busy visitors hits on site. The admin has reporting section from which by giving date range as parameters he/she can view users activity.

we have logic on these reporting pages that he can generate report based on date dange as parameter and it will be displayed on browser first, there there is an option to generate its HTML (printable version) and export to Export to EXCEL. The problem is when user generate report, with same parameters lets say it shows 500 users hits, but when user click printable version or export to excel same query runs and it gives 509 hits. That is geneuine issue because 9 users hits site later. Now that is issue, we want to maintain state based on admin user. we were thinking to use temp table logic, but would it be helpful? I need suggestions if someone already faced this issue and fixed this via some logic, Please share.

Thanks

Shamshad Ali.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search