>create database myTempDb >create sql view myView as ; > Select t1.Acode, t1.Aname, t2.Bname ; > from table1 t1 ; > inner join table2 t2 on t1.Acode == t2.Acode >* Code for view properties >* ... >>
>lnHandle=Sqlstringconnect('Driver={Microsoft Visual FoxPro Driver};'+; > 'SourceDB=c:\myFolder;SourceType=DBF;Exclusive=No;') >SQLExec(m.lnHandle, ; > "Select t1.Acode, t1.Aname, t2.Bname "+; > " from table1 t1 "+; > " inner join table2 t2 on t1.Acode == t2.Acode", 'myView') >* Code to make it updatable >SQLDisconnect(m.lnHandle) >select myView >Browse >Cetin