Hi all
New to SQL remote access and tried the following code -
nhandle = SQLCONNECT("test")
? SQLSETPROP(nhandle, "Transactions",2)
sqtext = 'select "Test Company$Contract Details".* from dbo."Test Company$Contract Details" '
? SQLexec(nhandle,sqtext,"projects")
? CURSORSETPROP("tables",'dbo."Test Company$Contract Details"')
? CURSORSETPROP("keyfieldlist","Contract_no_,sub_contract_no_")
? CURSORSETPROP("updatablefieldlist", CURSORGETPROP("UpdatableFieldList","projects") )
? CURSORSETPROP("updatenamelist",;
CURSORGETPROP("UpdateNameList","Projects"))
? cursorsetPROP("sendupdates",.t.)
REPLACE description WITH 'newest morrison 2'
? TABLEUPDATE()
? SQLCOMMIT(nhandle)
Updates work fine but when I try to close out, I get an error " no update tables are specified" - only exit is to CTR ALT DEL !!! - all help gratefully received !
Thanks
New to SQL remote access and tried the following code -
nhandle = SQLCONNECT("test")
? SQLSETPROP(nhandle, "Transactions",2)
sqtext = 'select "Test Company$Contract Details".* from dbo."Test Company$Contract Details" '
? SQLexec(nhandle,sqtext,"projects")
? CURSORSETPROP("tables",'dbo."Test Company$Contract Details"')
? CURSORSETPROP("keyfieldlist","Contract_no_,sub_contract_no_")
? CURSORSETPROP("updatablefieldlist", CURSORGETPROP("UpdatableFieldList","projects") )
? CURSORSETPROP("updatenamelist",;
CURSORGETPROP("UpdateNameList","Projects"))
? cursorsetPROP("sendupdates",.t.)
REPLACE description WITH 'newest morrison 2'
? TABLEUPDATE()
? SQLCOMMIT(nhandle)
Updates work fine but when I try to close out, I get an error " no update tables are specified" - only exit is to CTR ALT DEL !!! - all help gratefully received !
Thanks