Re: Open Dialog on SELECT - SQL

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Thomas Ganss (TGanss_RemoveForRealAdress_at_T-Online.de)
Date: 08/10/04

  • Next message: Dorian Chalom: "Thank you Rick Bean"
    Date: Tue, 10 Aug 2004 15:49:22 +0200
    
    

    Kumar,

    I've recently come across a puzzeling behaviour:
    sometimes a table opened with a specific alias

    If ! used(m.tcBlaBlx)
        select 0
        Use (m.tcblabla) alias (m.tcBlaBlx) again
    endif

    is opened with another alias(). If queried and protocolled
    in the program, non-printable ASCI is returned by alias(),
    in the debugger watch shows the value of dbf() for alias()
    in the watch window. Probably debugger follow up mistake.

    A directly following select() to that alias fails.
    The table is single user only on the local machine.
    I see it under W2k (Not under NT4) and VFP6 quite regularly
    (maybe 6-9 out of .24 Million uses, it is a long running data
    converting/mining app) even if I regularly garbage collect.
    VFP9 has shown the error as well, but only twice in a test
    scenario where I'ld expect 5-6 errors.

    Try not only to open the dbf() but check the alias, if you are
    refering to it in the SELECT-SQL.

    HTH

    thomas

    "Kumar" <Kumar@discussions.microsoft.com> schrieb im Newsbeitrag
    news:9675FE4A-1668-4DD5-988E-C1E0CC4E3265@microsoft.com...
    > I occassionally (and randomly) get the open dialog on a certain SELECT-SQL
    > statment. I've added a check to confirm the file exists and even open
    the
    > DBF before the select statement.
    > I still keep getting the dialog occassionally. Has anyone else
    encountered
    > this? If so, were you able to fix / get-around it ?
    >
    > Any help would be appreciated.....
    >
    > Thanks.
    > K


  • Next message: Dorian Chalom: "Thank you Rick Bean"

    Relevant Pages

    • Re: Strange Undefined Identifier
      ... single program statement... ... The other folder has the same DBF name that you have opened under ... The program and DBF files and field structure by all appearances are ... have made is to use a name as an alias, instead of C->TX_DTE, I now have ...
      (comp.lang.clipper)
    • Re: Question about select/use and alias
      ... >calling USE without "alias" will use DBF Name as ALIAS ... >> alias prefix in front of a database field. ... No network, so not an issue. ...
      (comp.lang.clipper)
    • Re: DBFUSED() in VFP6 or later?
      ... What you do get is a list of the alias' that are used. ... matter to do a DBF() on the array element to get the fullpath of the .DBF or ... "Zeke Galama" wrote in message ... >>> local lOpen as boolean, i as integer, cAlias as String ...
      (microsoft.public.fox.programmer.exchange)
    • Re: Find Resulting ALIAS() after SELECT
      ... the functions ALIAS() and DBFwill tell where the query result is. ... INTO TABLE is not supposed to produce a TMP file but a DBF file. ... How can I find out what ALIAS ...
      (microsoft.public.fox.programmer.exchange)
    • Re: File is in use
      ... > Any chance you're copying to an unexpected directory ... and that DBF maybe open with a different ... Ni Xau, you can use DBFto get the ... area or alias. ...
      (microsoft.public.fox.helpwanted)