Re: ODBC Update

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Juan Alonso (jacinc2_at_hotmail.com)
Date: 03/25/05


Date: Fri, 25 Mar 2005 16:46:08 -0500

I can help you.

I had this same problem and at first it kinda boggled me but here goes for
you ...

The reason that the table is returning the same data is because you are
adding the VIEW/CURSOR you are creating to your database and not deleting it
when you go to requery with the same query you were using before hand.

If this is not the case then you need to post part of your code so we can
see cuz I do not know any other reason why it will return the same data and
not update it.

Unless you are missing one of two in your code.

1) =CURSORSETPROP("SendUpdates", .T.) if you are strictly using PassThrough
and creating a CURSOR.

2) DBSetProp("CUSTOMER","View","SendUpdates",.T.) if you are using partially
PassThrough with a VIEW.

These are the only two things I can currently think of .. considering your
description of the problem, unless its in your method of updating the data.

Good luck and I hope you kick in with this.

Have a nice day,

Johnny5

"Cindy Winegarden" <cindy_winegarden@msn.com> wrote in message
news:OJFEvNtEFHA.548@TK2MSFTNGP14.phx.gbl...
> Hi Kam,
>
> When you change the table content are you moving the record pointer so
> that the field is actually updated?
>
> --
> Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> cindy_winegarden@msn.com www.cindywinegarden.com
>
>
> "Kam" <Kam@discussions.microsoft.com> wrote in message
> news:AD481FC5-AF51-4623-832B-F538ADDB3FBC@microsoft.com...
>>I created a DSN for the VFP free table.
>>
>> When I 1st queries the table, using SQL Pass thru it work correctly.
>> Then I use use under VFP environment and change the table content and
>> queries the tables use the SQL Pass Thru.
>>
>> The table information remain the same.
>>
>> I don;t know where is the problem.
>> But I think either the info in the free table is not updated or the
>> queries
>> still look at the old info in the buffer.
>>
>> Can anyone help?
>
>



Relevant Pages

  • Re: Stored Procedure
    ... One reason is that it's good to be consistent ... about storing all your queries in one place. ... Another reason is the security that SQL ... > But say if I only want to do simple queries like Select Col1 From Table1 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ODBC Update
    ... Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP ... >I created a DSN for the VFP free table. ... > When I 1st queries the table, using SQL Pass thru it work correctly. ...
    (microsoft.public.fox.vfp.queries-sql)
  • ODBC Update
    ... I created a DSN for the VFP free table. ... When I 1st queries the table, using SQL Pass thru it work correctly. ...
    (microsoft.public.fox.vfp.queries-sql)
  • Re: CommandBuilder generates incorrect SQL
    ... you want to have dynamically generated queries. ... For some reason I got it fixed. ... > Why don't you just go ahead and write your own SQL instead of ... > - Sahil Malik ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Stored procedure
    ... queries. ... The more difficult part to reason is why the table name is dynamic, ... Links for SQL Server Books Online: ...
    (microsoft.public.sqlserver.programming)