DominicProgrammer
IS-IT--Management
Hi Friends.
Kindly assist me post this data from vfp table to sql server.
"CLOSE ALL
USE timback IN 0 ORDER dc
gnConnHandle=SQLCONNECT('SQL',') && proper(mlogname)
IF gnConnHandle <= 0
MESSAGEBOX('Could not Connect to the SQL Server.', 16, 'SQL Server Error')
SQLDISCONNECT(gnConnHandle)
RETURN
ENDIF
sele timback
SQLEXEC(gnConnHandle,'insert into SMHP_Tmp_Data4 (hp_empno,empno) select hp_empno,empno from timback')
messagebox('Upload complete')
SQLDISCONNECT(gnConnHandle)"