Can you please correct my script.
I have script/program to append data records in sql table but upon executed & checking from sql table no records inserted but connection string below was successfully connected, what I've missed in the commands or functions.
Set status off
set echo off
LOCAL hConn && Connect to an ODBC data source
hConn =SQLStringConnect("DSN=APRODSALES;Driver=SQL Server;Server=(local);UID=ghie;Database=master")
&& Execute SQL command
LOCAL nResult
nResult = SQLEXEC(hConn,"USE master")
nResult=sqlexec(hConn,"SELECT * FROM prodsales","MPRODSALES")
&&Insert a record in sql table
nResult=SQLSetProp(hConn, "Transactions",1)
nResult=SQLEXEC(hConn,"INSERT INTO prodsales(PRODCODE,PRODDESC,QUANTITY,UNITPRICE)VALUES('0004','Tire,4,3500.00) ");
nResult=TABLEUPDATE()
nResult=SQLCommit(hConn)
BROWSE
Thanks
appreciate your reply