Re: Some basic session state questions



Thanks very much for the replies.

Hans: Thanks for the info. Also, the .aspnet group would have been
more appropriate, thanks for mentioning it. Is it a common (or
advisable) practice to save and restore the Page object itself
(InProc)?

Michael: Thanks for pointing out Session_End. For this project, I have
a reason to use SQL other than simply as a mechanism for storing
session info. The reason for storing info in SQL would be to set up
another stored procedure call that I'll need to do. This boils down to
a "best practices" SQL question. The user will be able to select 1-600
items, which translate into rows in table A. So, I think the "best
practice" option would be to bulk insert the selections into another
SQL table (table B), and use a join to pull out the data from table A,
which could be done with a single stored procedure call. Then I'd need
to clean out table B.

Other options would be making a stored procedure call for every
selection (up to 600, not very efficient), or passing the selections as
an array and parsing (not very relational).

After writing this post, I think I'll end up pulling all rows from
table A once, at the application level (the data is pretty static), and
use DataViews at the session level to let users pick and choose their
data. One SQL stored proc call per day... yeah, i like that better...
:)

.



Relevant Pages

  • Re: Views vs Stored Procedures, whats the difference?
    ... I hope you are not suggesting you embed SQL queries into the application? ... A stored procedure logic will be exactly as fast as the algorithm you ... I understant that SQL Server supports hints. ... implementations (nestedloop, merge, hash, ..) on decent sized tables, then ...
    (comp.databases.ms-sqlserver)
  • Re: Stored Procedures - Patterns and Practices
    ... >published the reasoning behind its opinions. ... I disagree that the debate in SQL Server related discussion forums ... If the natural key is long or spans too many ... I want to call a stored procedure that adds a customer ...
    (microsoft.public.sqlserver.programming)
  • Re: Issue with retrieving large data over web using Stored Procedu
    ... how do I go about analyzing a stored procedure with selecting ... Is there any tool in the SQL Profiler that analyze each Trace? ... "Active Server Pages error 'ASP 0113' ... This email account is my spam trap ...
    (microsoft.public.inetserver.asp.db)
  • Re: Problem using SP as record source with Access2002 & SQL Server 7
    ... I've installed a brand new copy of SQL Server 2000 with the original ... I've created the folowing stored procedure for the resync ... Resync Command: ALL_CUSTOMERS_RESYNC? ... I need to upgrade to a newer version of Microsoft SQL ...
    (microsoft.public.access.adp.sqlserver)
  • Re: using Command to set Parameters and Recordset to retrive the Query
    ... doesn't the rsData will be interpretate as an input parameter in the SP? ... >> Query and retrive the Recordset so I can use the Paging property ... > Even if this technique of using the parameters in the ORDER BY does work for> you, I suspect that this will defeat your objective of preventing sql> injection. ... See below for a more efficient solution> using a stored procedure. ...
    (microsoft.public.inetserver.asp.general)