Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Welcome in 2003 ! what i'll doing 2

Status
Not open for further replies.

monikai

Programmer
Aug 4, 2002
358
PL
Welcome in 2003 !
what i'll doing with it ?
I use view to SQL Serve and in my prg:
USE nsptry!nsp_mbud IN 0 ALIAS M1
SELECT M1
SET MULTILOCKS ON
=CURSORSETPROP('Buffering', 5, 'M1')
I updated group of selected records and when i must do TableUpdate:
1. i change one field in this group ?
2. i change all fields (one by one) in this group ?
3. i change allrecords (before using view) ?

Thanks for advices Kind regards from Warsaw !!!!!
Monika (monikai@yahoo.com)
 
Hi,

I use the same tablebuffering and after I changed some fields so I call Tableupdate(.t.)
It saves all changes you have done before.

 
Hi

If you want all the records to be updated or none to be updated.. then use a TRANSACTION PROCESSING
BEGIN TRANSACTION
lSuccess = TABLEUPDATE(.t.)
IF lSUccess
END TRANSACTION
ELSE
ROLLBACK
ENDIF

On the contrary, if you do not want to rollback.. you dont have to use the ROLLBACK command.
:)

ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
Happy New Year [bigears] [party] [2thumbsup]

 
Sorry, yesterday i worked hard (i needed extra head an hands) and i forgot about title.
Bon011, Ramani ! Thanks for answers.
Ramani. tell me; when i use Transaction - i don't use 'buffering', isn't it?
Kind regards from Warsaw !!!!!
Monika (monikai@yahoo.com)
 
You can use BUFFERING while you use TRANSACTION processing. These two act separately. TRANSACTION helps to batch the updates as a whole for all tables .. what BUFFERING can do a signle table at a time.
:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
Happy New Year [bigears] [party] [2thumbsup]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top