ask for advice. how to update dbo sql values ??via vfp
The code script that I put in the button is as below:
nHandle=SQLSTRINGCONNECT("DSN=surya;UID=surya;PWD=surya_artha;DATABASE=bpr_arthasurya;")
If nHandle<0
AERROR(laError)
Suspend && an error happened
Endif
If SQLEXEC(nHandle,"SELECT * FROM DBO.log where inisial = 'RONY'","temp")<0
AERROR(laError)
Suspend && an error happened
Endif
select temp
replace inisial with 'YUS' all
* SET MULTILOCKS ON
* CURSORSETPROP('Buffering',5,'temp')
* CURSORSETPROP('Sendupdates',.T.,'temp')
* CURSORSETPROP('Tables','log','temp')
* CURSORSETPROP('KeyFieldList','trxid','temp')
* CURSORSETPROP('UpdatableFieldList','aplikasi, keterangan, inisial, waktu, otorisasi, host, id, cabang, grup, trxid','temp')
* CURSORSETPROP('UpdateNameList','aplikasi aplikasi, keterangan keterangan, inisial inisial, waktu waktu, ;
otorisasi otorisasi, host host, id id, cabang cabang, grup grup, trxid trxid','temp')
SQLEXEC(nHandle, "UPDATE log SET inisial = curReplications.inisial WHERE trxid = curReplications.trxid")
=tableupdate(.T.)
from the script the value is not updated in dbo sql.
can you help me to clarify this matter?
The code script that I put in the button is as below:
nHandle=SQLSTRINGCONNECT("DSN=surya;UID=surya;PWD=surya_artha;DATABASE=bpr_arthasurya;")
If nHandle<0
AERROR(laError)
Suspend && an error happened
Endif
If SQLEXEC(nHandle,"SELECT * FROM DBO.log where inisial = 'RONY'","temp")<0
AERROR(laError)
Suspend && an error happened
Endif
select temp
replace inisial with 'YUS' all
* SET MULTILOCKS ON
* CURSORSETPROP('Buffering',5,'temp')
* CURSORSETPROP('Sendupdates',.T.,'temp')
* CURSORSETPROP('Tables','log','temp')
* CURSORSETPROP('KeyFieldList','trxid','temp')
* CURSORSETPROP('UpdatableFieldList','aplikasi, keterangan, inisial, waktu, otorisasi, host, id, cabang, grup, trxid','temp')
* CURSORSETPROP('UpdateNameList','aplikasi aplikasi, keterangan keterangan, inisial inisial, waktu waktu, ;
otorisasi otorisasi, host host, id id, cabang cabang, grup grup, trxid trxid','temp')
SQLEXEC(nHandle, "UPDATE log SET inisial = curReplications.inisial WHERE trxid = curReplications.trxid")
=tableupdate(.T.)
from the script the value is not updated in dbo sql.
can you help me to clarify this matter?