Results 1 to 4 of 4

Thread: Database Programming - Loading Correctly?

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2005
    Posts
    62

    Exclamation Database Programming - Loading Correctly?

    Using VB

    Okay, I have a Access database going on that stores all the data. Would it be better to do either:

    1) Get the info from the database, store them in variables(arrays), call them when needed, then when needed have them save all using some sort of /save command or such.

    OR

    2) Call the info when needed right from the DB, and directly save it when something changes..



    This is using the Microsoft DAO 3.6 Library...
    What I'm asking is. Can I call straight from the DB all the time? Or will it cause lag... Basicly: Should it be called and stored into variables then saved back into the DB using those variables, so it would not save if a crash occured? Or can I call it right to the client, and have it save soon as something updates?

    This is for server to client stuff.

    --

    Basicly the first one would be /save only when I type it, or per few minutes.

    And the second one would be real-time. Saving when something changes.

    Got to remember there may be 100-150 people using it always.

  2. #2

    Thread Starter
    Member
    Join Date
    Nov 2005
    Posts
    62

    Re: Database Programming - Loading Correctly?

    Basicly, Would be better to call tons of words and such stored in the ACCESS DB, put them into variables, then when done save back with a save command?

    Or call them right up without storing, and save it whenever something changes.

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Database Programming - Loading Correctly?

    Our technique is to load as little data into the VB side as possible - so sharing is not effected.

    Then as soon as possible after the user changes a value we write it back to the database.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4

    Thread Starter
    Member
    Join Date
    Nov 2005
    Posts
    62

    Re: Database Programming - Loading Correctly?

    Thank you for the quick responce. I'll try that

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width