Re: Best Pratice-Remore ADO Access

From: DDJ (johnson_at_milehi.com)
Date: 12/13/04

  • Next message: Installing W2003 on BM Infinity 4500R: "Help updating disconnected recordsets in ADO VB 6.0 app"
    Date: Sun, 12 Dec 2004 20:03:54 -0700
    
    

    > 2. For editting data, always have on hand the primary key
    > for the record and use an UPDATE statement with a
    > where clause to update a specific record (or specific
    > group or records).
    >
    > 3. To add new data to the table, use an INSERT statement.

    I responded incorrectly to "Wart"'s post...I will be using the UPDATE
    statement.

    >
    > 4. For non trivial queries, use stored procedures.

    I've been thinking about this. Our program ships with an Access db backend,
    but users can upgrade to SQL. Can I, with code, create these stored
    procedures on a user's SQL Server without going through a lot of brain
    damage (I'm thinking about problems with permissions etc.).?

    >
    > 5. Whenever possible, make the serverwork, not the client
    > (sort ot a rehash from the previous item).
    >
    > How is your WAN connected? Does it go over the
    > Internet? I ask this becasue I am now doing research
    > to see how I can build an architecture where the front
    > end app will be installed on clients and the SQL Server
    > will be in some remote site. I am hoping to be able to
    > use the Internet to move data back and forth. Although
    > I have done this kind of thing before, it has been limited
    > to internally wired WANs, where each satellite office
    > is connected by routers and it is all just a great big
    > private network. To be able to do this through the
    > Internet is another story. If you went that way, I certainly
    > could use any advice that you might have, including the
    > logic that you used to connect the clients with SQL Server.

    We are assuming our users just have an Internet connection (slow or fast),
    and we want to give them the option of switching our program to "remote"
    mode, where we just process one record at a time, rather than the "normal"
    processing, which looks to all records for the user. Without much
    experience in these matters, YOUR experience would be helpful!

    >
    > Thanks!
    > Saga
    >
    >
    > "DDJ" <johnson@milehi.com> wrote in message
    > news:0x5ud.32$td2.4639@news.uswest.net...
    > > We are creating a form for our VB 6 app users to edit some add and edit
    > some
    > > data over a WAN connection to a SQL Server. What is the best method to
    > set
    > > up the ADO objects under these circumstances? Specifically:
    > >
    > > 1. I am assuming that the Connection object should only be opened when
    > > reading or writing data, correct?
    > >
    > > 2. When writing data, I am assuming that using a Command object with an
    > > INSERT clause would be the most efficient method, correct?
    > >
    > > 3. When reading the data from a record, I think I've read that the
    > > recordset object creates a lot of overhead, so it's generally not the
    best
    > > way to do it. If true, then how do I retrieve the data?
    > >
    > > 4. Since the user will need to select a specific record when they want
    to
    > > edit the data, what is the best way to have them select the record they
    > want
    > > to edit, without unnecessarily retrieving too much data? Kind of an
    open
    > > ended question, I know. But if anyone can pass along any useful
    > guidelines
    > > to do this, I would appreciate it! Seems like you almost have to use
    the
    > > recordset object to do this, regardless of how many fields from the
    record
    > > you will be retrieving...
    > >
    > > Any feedback appreciated.
    > >
    > > Dan
    > >
    > >
    >
    >


  • Next message: Installing W2003 on BM Infinity 4500R: "Help updating disconnected recordsets in ADO VB 6.0 app"

    Relevant Pages

    • Re: Best Pratice-Remore ADO Access
      ... and then edit or add new records to it. ... end app will be installed on clients and the SQL Server ... use the Internet to move data back and forth. ... > data over a WAN connection to a SQL Server. ...
      (microsoft.public.vb.database.ado)
    • Re: remoting vs. direct sql connection
      ... I'd say that you should never expose your SQL Server directly to the ... Internet -- the security risks are simply far too great. ... Using either a web service or remoting will also somewhat help in relieving ... Remoting logically uses a connection per ...
      (microsoft.public.dotnet.framework.remoting)
    • Re: SQL CE Setup 101... C#
      ... the Internet Url. ... We have seen issues when we give IP address in internet ... Try using the sql server instance name. ... > // Create the Local SSCE Database subscription. ...
      (microsoft.public.sqlserver.ce)
    • Re: MDB vs ADP
      ... So whilst in many cases it can be very slow using an adp / mdb to connect to ... a sql server over the net you can make it work. ... > MDB and ADP over the Internet; not only when loading 1000 records but also ...
      (microsoft.public.access.adp.sqlserver)
    • Re: upsizing to SQL.
      ... My vote for terminal server....I have a client successfully using this for 2 ... >> & the WAN connection is good but it is still running slowly. ... > SQL Server doesn't magically make that problem go away. ... > still 10 to 100 times slower than a pretty crappy LAN and thousands of ...
      (microsoft.public.access.tablesdbdesign)