Article ID: 138998
Article Last Modified on 3/14/2005
datasrcname='test' &&Data Source Name - from ODBC administrator userid='sa' &&User ID pword='' &&User Password ** Establish a connection ** handle=SQLConnect(datasrcname, userid, pword) ** Execute query ** =SQLExec(handle, 'select * from authors') ** Copy results to a table ** COPY TO TEMP.DBF ** Close the cursor ** SELECT Sqlresult USE ** End the connection ** =SQLDisconnect(handle)When this program is run, the results of the SQLEXEC() function are stored in the Temp.dbf table.
Additional query words: VfoxWin kbvfp300 kbvfp300b kbvfp500 kbvfp500a kbvfp600
Keywords: kbhowto KB138998