Click here to Skip to main content
15,897,334 members
Home / Discussions / Database
   

Database

 
AnswerRe: how to use now() function in the Access when I write SQL Pin
kumarprabhakar7410-Jul-06 1:14
kumarprabhakar7410-Jul-06 1:14 
AnswerRe: how to use now() function in the Access when I write SQL Pin
kumarprabhakar7410-Jul-06 1:15
kumarprabhakar7410-Jul-06 1:15 
QuestionData Source Reconciliation (Sybase) Pin
SSLaks9-Jul-06 1:41
SSLaks9-Jul-06 1:41 
Questionplease help me!!! Pin
kicap8-Jul-06 17:29
kicap8-Jul-06 17:29 
AnswerRe: please help me!!! Pin
Paul Conrad8-Jul-06 19:11
professionalPaul Conrad8-Jul-06 19:11 
AnswerRe: please help me!!! Pin
Eric Dahlvang10-Jul-06 3:26
Eric Dahlvang10-Jul-06 3:26 
Questionhow to update dataset after session cache? Pin
Ed 548-Jul-06 12:40
Ed 548-Jul-06 12:40 
AnswerRe: how to update dataset after session cache? Pin
Igor Sukhov9-Jul-06 0:24
Igor Sukhov9-Jul-06 0:24 
In your second code you're creating the instance of the SqlConnection class (initialised with the connection string) and never use it due to the fact that SqlDataAdapter object is restored from the session state.

The standard aproach in hadling data with the ADO.NET is that simple:

*Create and open connection
*Populate and update data
*Close connection

There's no reason to store SqlConnection, DataAdapter classes because you'll not benefit from it - just recreate them when you're need them. Another hint to you - no DataAdapter neither SqlConnection is serializable therefore they're not designed to be stored persistently in the session state. To prove it right - change the session state model from "InProc" to "StateServer" or "SqlServer" and you'll get exception while putting this objects into state.

To sum up that I wrote above: don't try to cache anything from the data. When you decide to cache the data in the session state - make sure it not going to exhaust web server memory as for the every user session there'll be and cached dataset in the memory.


Best regards,

-----------
Igor Sukhovhttp://sukhov.net
GeneralRe: how to update dataset after session cache? Pin
Ed 5410-Jul-06 8:35
Ed 5410-Jul-06 8:35 
QuestionAbout DataType in the access Pin
KSCsoft8-Jul-06 5:04
KSCsoft8-Jul-06 5:04 
AnswerRe: About DataType in the access Pin
Rob Graham8-Jul-06 5:27
Rob Graham8-Jul-06 5:27 
Questiontransaction Pin
md_refay8-Jul-06 3:27
md_refay8-Jul-06 3:27 
AnswerRe: transaction Pin
Rob Graham8-Jul-06 5:28
Rob Graham8-Jul-06 5:28 
QuestionGroup By Question Pin
Chris McGlothen7-Jul-06 12:03
Chris McGlothen7-Jul-06 12:03 
AnswerRe: Group By Question Pin
Asif Sayed7-Jul-06 17:33
Asif Sayed7-Jul-06 17:33 
GeneralRe: Group By Question Pin
Chris McGlothen10-Jul-06 4:26
Chris McGlothen10-Jul-06 4:26 
AnswerRe: Group By Question Pin
Colin Angus Mackay7-Jul-06 23:22
Colin Angus Mackay7-Jul-06 23:22 
GeneralRe: Group By Question Pin
Chris McGlothen10-Jul-06 4:23
Chris McGlothen10-Jul-06 4:23 
QuestionSQL database administration levels Pin
GETEL - General Telecom7-Jul-06 9:24
GETEL - General Telecom7-Jul-06 9:24 
AnswerRe: SQL database administration levels Pin
Colin Angus Mackay7-Jul-06 9:47
Colin Angus Mackay7-Jul-06 9:47 
GeneralRe: SQL database administration levels Pin
Paul Conrad7-Jul-06 14:39
professionalPaul Conrad7-Jul-06 14:39 
GeneralRe: SQL database administration levels Pin
Colin Angus Mackay7-Jul-06 23:16
Colin Angus Mackay7-Jul-06 23:16 
QuestionField in multiple tables Pin
VK-Cadec7-Jul-06 9:02
VK-Cadec7-Jul-06 9:02 
AnswerRe: Field in multiple tables Pin
Colin Angus Mackay7-Jul-06 9:43
Colin Angus Mackay7-Jul-06 9:43 
GeneralRe: Field in multiple tables Pin
VK-Cadec7-Jul-06 9:46
VK-Cadec7-Jul-06 9:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.