NestedDataSets who will Update and how will it locate?

From: Coder (alldukes_at_hotmail.com)
Date: 01/23/05

  • Next message: Bill C: "Re: Handling UpdateBatch data conflicts in Multi-user App"
    Date: Sun, 23 Jan 2005 12:39:23 +0200
    
    

    I am using D7 + MsSql2000 + BetterAdo + MsDataShape on the sample database
    "NorthWind"

    CONNECTION AS:
    Provider=MSDataShape.1;Persist Security Info=False;Data
    Source=PC-CODEX;Integrated curity=SSPI;Initial Catalog=Northwind;Data
    Provider=SQLOLEDB;

    ORDERSDATASET AS:
    SHAPE {
    SELECT
     Orders.*,
     Customers.CompanyName,
     Customers.ContactName,
     Employees.FirstName,
     Employees.LastName
    FROM Orders
     LEFT JOIN Customers ON Customers.CustomerId = Orders.CustomerId
     LEFT JOIN Employees ON Employees.EmployeeId = Orders.EmployeeId
    WHERE
     Orders.OrderId = ?
    }
    APPEND (
     {
       SELECT
         [Order Details].*,
         Products.ProductName
       FROM [Order Details]
         LEFT JOIN Products ON [Order Details].ProductId = Products.ProductId
       Where OrderId=?
      }
    RELATE OrderID TO Parameter 0
    )

    LockType is ltBatchOptimistic

    DETAILSDATASET AS:
    DatasetField set to ORDERSDATASET.Chapter1

    After Editing DATASETS
    ORDERSDATASET.UpdateBatch() updates ORDERS only but not the DETAILS
    Are'nt the DETAILS a part of MASTER and shouldbe resolved by ADO
    or should I always use
      Transaction.begin
      UpdateMaster
      UpdateDetail
      TransactionCommit

    And why not the LinkedFields are not updated when I do Inserts in details,
    instead I do assign them manualy?

    Besides when I watch the UpdateSQL I see the WHERE clause to be PK =xxx and
    UpdatedFields=OldValues but what if I want PK=xxx only! Or maybe a difrent
    criteria, like setting providersflags? Nothing in BorlandsADO and I can't
    manage those in BetterADO...

    WHERE ARE THE RESOURCES ON THESE TOPICS, WHY NOTHING IS DOCUMENTED
    COMPLETELY AND CLEARLY WITH SAMPLES FOR REAL LIFE APPLICATIONS...

    I thought it will be simpler but it took more time experiencing these stuff,
    I wonder if was quite happy using a MemTable, and doing all the Fetching to
    Dataset, Loading to MemTable, Editing , Loading back to Dataset, Checking
    For Conflicts on server, Updating to server by my own SQLs, it was hard work
    but I was sure what I was doing....


  • Next message: Bill C: "Re: Handling UpdateBatch data conflicts in Multi-user App"

    Relevant Pages

    • settings change in Outlook
      ... The POP server setting does not hold in Outlook 2003. ... tried loading all updates. ...
      (microsoft.public.outlook.general)
    • Re: Strange Server Behaviour
      ... Thanks for updates. ... I am Charles the backup of Brandy, as the Brandy is currently sick at home. ... Microsoft CSS Online Newsgroup Support ... | Subject: Re: Strange Server Behaviour ...
      (microsoft.public.windows.server.sbs)
    • Re: WSUS Client not yet reported
      ... The client still fails to report. ... Check your server status ... Suggestion 2: Check the IIS settings: ... any updates in your thread. ...
      (microsoft.public.windows.server.sbs)
    • Re: SUS
      ... > I have setup a SUS Server on win2k. ... 0-2.reg will not configure your machine to automatically download updates from ... critical updates or service packs that your machine needs. ... It will also ask you if you want to install them, ...
      (microsoft.public.windows.server.general)
    • Re: FYI for eTrust AV 7.x Users
      ... When I just had my little incident with the redistribution settings on the SBS, my clients were logging successful checks for updates, and the logs indicated that no updates were found. ... That turned out to be because I had not gone back and checked the redistribution server box for 8.x after reinstalling the redistribution server. ... installed the new remote install utility which works the same as v7 did - just edited the .ICF file the way I wanted it and ran the client upgrades from the server. ... I can't remember if it's a separate install, or if you have to click a box when you do the Agent install, but redistribution server is not installed by default. ...
      (microsoft.public.windows.server.sbs)