Click here to Skip to main content
15,908,674 members
Home / Discussions / Database
   

Database

 
GeneralRe: how to use now() function in the access? Pin
KSCsoft5-Jul-06 17:42
KSCsoft5-Jul-06 17:42 
AnswerRe: how to use now() function in the access? Pin
Eric Dahlvang5-Jul-06 3:32
Eric Dahlvang5-Jul-06 3:32 
GeneralRe: how to use now() function in the access? Pin
KSCsoft5-Jul-06 17:50
KSCsoft5-Jul-06 17:50 
GeneralRe: how to use now() function in the access? Pin
Eric Dahlvang6-Jul-06 3:26
Eric Dahlvang6-Jul-06 3:26 
QuestionTransferring data between databases Pin
divyaswati4-Jul-06 18:50
divyaswati4-Jul-06 18:50 
AnswerRe: Please help me it's urgent Pin
Igor Sukhov4-Jul-06 19:24
Igor Sukhov4-Jul-06 19:24 
AnswerRe: Please help me it's urgent Pin
PlayByTheRules4-Jul-06 22:14
PlayByTheRules4-Jul-06 22:14 
Questionstrategy for when to update DB from dataset [modified] Pin
Ed 544-Jul-06 18:14
Ed 544-Jul-06 18:14 
Hi,



What event should I use to trigger an update of a dataset to the originating DB, in order to take max advantage of dataset scalability without losing data?

I'm building an ASP .NET website driven by an SSE database. Hopefully there will be several thousand users. When a user logs on, the codebehind queries the DB and retrieves up to several dozen records belonging to that user. The user can add, delete, and modify records on several webforms. I'm using a dataset and SqlDataAdapter to get the records at login and caching them in the Session object.

Right now I'm calling SqlDataAdapter.Update(dataset) every time the user submits a webform with a new record. That works, but it doesn't seem very efficient. But I can't figure out how else to do it without potentially losing records. What if the user enters a record, and then closes the browser window? What if he times out or goes to another website before my Update method runs?

How do I take better advantage of datasets and data adapters? Is there a way to detect the end of a Session and set up an event handler to run an update then? Or maybe cache to the Application and run an update on time intervals?

I apologize if this question is elementary. I'm early in the learning process for C# / ASP .NET / ADO.

TIA

-- modified at 0:15 Wednesday 5th July, 2006
AnswerRe: strategy for when to update DB from dataset Pin
Frank Kerrigan5-Jul-06 1:52
Frank Kerrigan5-Jul-06 1:52 
QuestionHow to write the Access ConnectionString that have set password? Pin
KSCsoft4-Jul-06 16:32
KSCsoft4-Jul-06 16:32 
AnswerRe: How to write the Access ConnectionString that have set password? Pin
Paul Conrad4-Jul-06 17:29
professionalPaul Conrad4-Jul-06 17:29 
GeneralRe: How to write the Access ConnectionString that have set password? Pin
KSCsoft4-Jul-06 18:16
KSCsoft4-Jul-06 18:16 
Questiongetting next row data into focus Pin
Glen Harvy4-Jul-06 15:03
Glen Harvy4-Jul-06 15:03 
AnswerRe: getting next row data into focus Pin
DIMPLE_R4-Jul-06 19:14
DIMPLE_R4-Jul-06 19:14 
GeneralRe: getting next row data into focus Pin
Glen Harvy5-Jul-06 0:43
Glen Harvy5-Jul-06 0:43 
AnswerRe: getting next row data into focus Pin
Mike Osbahr6-Jul-06 7:36
Mike Osbahr6-Jul-06 7:36 
GeneralRe: getting next row data into focus Pin
Glen Harvy6-Jul-06 10:51
Glen Harvy6-Jul-06 10:51 
QuestionAdd Tables Pin
Brendan Vogt4-Jul-06 5:01
Brendan Vogt4-Jul-06 5:01 
AnswerRe: Add Tables Pin
-Dr_X-5-Jul-06 7:27
-Dr_X-5-Jul-06 7:27 
QuestionSQL Server 2005 Pin
Brendan Vogt4-Jul-06 4:16
Brendan Vogt4-Jul-06 4:16 
AnswerRe: SQL Server 2005 Pin
Colin Angus Mackay4-Jul-06 6:39
Colin Angus Mackay4-Jul-06 6:39 
AnswerRe: SQL Server 2005 Pin
Eric Dahlvang5-Jul-06 3:45
Eric Dahlvang5-Jul-06 3:45 
AnswerRe: SQL Server 2005 Pin
Mike Dimmick5-Jul-06 4:33
Mike Dimmick5-Jul-06 4:33 
QuestionUnable to read binary field type Pin
BadKarma4-Jul-06 3:52
BadKarma4-Jul-06 3:52 
Questionhelp on auto-increment datatype for SQL Pin
Kenzy864-Jul-06 0:44
Kenzy864-Jul-06 0:44 

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.