Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 Tags
Subject: RE: Insert & Update records
Thread ID: 145129 Message ID: 146019 # Views: 20 # Ratings: 0
Version: Visual FoxPro 9 Category: Databases, Tables and SQL Server
Date: Thursday, September 20, 2007 2:43:10 PM         
   


> >
> > Transactions on an buffered tables? Do tell.
> >
> > Ken
> > You shall know the truth - and the truth shall set you free. (John 8:33)
>
> I'm not sure I understood:) I mean transactions are independant from buffering:
>
>
USE (_samples+'data\customer')
> BEGIN TRANSACTION
> replace ALL region WITH TRIM(region)+'_Updated'
> DELETE FOR country = 'USA'
> SET DELETED OFF
> BROWSE TITLE 'In transaction-deleted' for DELETED()
> BROWSE TITLE 'In transaction-updated' FIELDS region,country
> ROLLBACK
> 
> BROWSE TITLE 'After rollback-deleted' for DELETED()
> BROWSE TITLE 'After rollback-updated' FIELDS region,country
> 
> USE

>
> Cetin Basoz

Cetin

I had no idea that you could do this. I would normally use table buffering as my first "level" of buffering and I would use transactions only when I need to co-ordinate the updates of multiple tables. If one update fails they all fail - that sort of thing. It never occurred to me to try using transactions without buffering. My rating to you.

Ken
You shall know the truth - and the truth shall set you free. (John 8:33)



COMPLETE THREAD
Insert & Update records Posted by Stewart Chew @ 9/13/2007 8:47:55 AM
RE: Insert & Update records Posted by tushar @ 9/13/2007 10:12:55 AM
RE: Insert & Update records Posted by Stewart Chew @ 9/13/2007 11:33:53 AM
RE: Insert & Update records Posted by Ken Murphy @ 9/13/2007 12:40:19 PM
RE: Insert & Update records Posted by Stewart Chew @ 9/18/2007 3:54:33 AM
RE: Insert & Update records Posted by tushar @ 9/18/2007 11:44:22 AM
RE: Insert & Update records Posted by Ken Murphy @ 9/18/2007 2:12:41 PM
RE: Insert & Update records Posted by Stewart Chew @ 9/19/2007 2:39:21 AM
RE: Insert & Update records Posted by Ken Murphy @ 9/19/2007 2:55:43 PM
RE: Insert & Update records Posted by Stewart Chew @ 9/20/2007 4:18:16 AM
RE: Insert & Update records Posted by Ken Murphy @ 9/20/2007 1:45:31 PM
RE: Insert & Update records Posted by Cetin Basoz @ 9/20/2007 2:05:02 PM
RE: Insert & Update records Posted by Ken Murphy @ 9/20/2007 2:14:16 PM
RE: Insert & Update records Posted by Cetin Basoz @ 9/20/2007 2:26:32 PM
RE: Insert & Update records Posted by Ken Murphy @ 9/20/2007 2:43:10 PM
RE: Insert & Update records Posted by Cetin Basoz @ 9/20/2007 2:00:53 PM