lnConnectionHandle=SQLSTRINGCONNECT(...) =SQLDISCONNECT(0) *now connection does not exist, and any sql command with it will fail.You may check the connection with, say, this:
on error llerr=.t. sqlexec(.....) on error if aerror(aa)>0 * error occurs ?aa[2] endif .....>I'm opening a connection to SQL in VFP 9.