Results 1 to 7 of 7

Thread: [u]Your[/u] Opinion Please

  1. #1

    Thread Starter
    Addicted Member JasonGS's Avatar
    Join Date
    May 2000
    Location
    California
    Posts
    155

    Lightbulb YOUR OPINIONS?

    In your opinion, would you say that accessing a database on a SQL server using VB & ADO is an efficient combination to base a 50+ concurrent user database on.
    The VB client would establish a connection with ADO and open and modify recordsets depending on user input (employee database type thing).
    So... would YOU say that this is fine or is there a better way to accomplish this?

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163
    Your choice of tools are good ( SQL Server,VB and ADO). You will want to avoid keeping recordsets open for a long time. In other words 1)Get the record(s) 2)modify locally and 3) send update back to server. Your update procedure should make sure that no one else has changed the record in the meantime (use timestamps).

    Glenn D
    Development/Analyst

  3. #3

    Thread Starter
    Addicted Member JasonGS's Avatar
    Join Date
    May 2000
    Location
    California
    Posts
    155

    Wink

    That's what I was thinking... rs.Open, populate the form, and close the rs. When they click Save it does a SELECT Stamp FROM bla bla bla and makes sure that it wasnt changed, and does a .Update and closes the rs again.

  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Or better yet, create a Stored Procedure which will modify the record, then from VB pass parameters (whatever number of parameters you have defined in Stored Procedure) to modify the record. This will increase the speed of your apllication significantly.

  5. #5

    Thread Starter
    Addicted Member JasonGS's Avatar
    Join Date
    May 2000
    Location
    California
    Posts
    155

    Question

    How come stored procedures execute so much faster? Just because they are server-side?

  6. #6
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Yeap. For a recordset it has to make a trip to the server, where Stored Procedure is being executed on the server and it is precompiled.

  7. #7
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Lightbulb BatchUpdate feature.

    May be you also can use the BatchUpdate in ADO connection.

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