Hello everyone
I am having a problem when i m trying to connect to a remote server from a local machine.
I have a visual foxpro free table named as items.dbf on a directory called foxpro on my remote server.
I have a simple connection form which is checking the connection with the remote server. the coding on this form is as follow:
lcDbfDir = [http://72.29.68.136/~mglobe/foxpro/]
lcCon = [Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=] + lcDbfDir + [;Exclusive=No;NULL=NO;BACKGROUNDFETCH=NO;DELETED=NO]
lh = SQLStringConnect( lcCon )
if lh>0 then
= MESSAGEBOX('Connection made', 48, 'SQL Connect Message')
else
= MESSAGEBOX('Cannot make connection', 16, 'SQL Connect Error')
Aerror (arrWhy)
Display Memo Like arrWhy
ENDIF
SQLTables (lh)
Browse
SQLExec ( lh, "select * from items" )
SqlResult.source
now when I run this program on my local machine while connected to the internet it gives me this error message:
Connection Handle is invalid
Connectivity error: [Microsoft][ODBC Visual foxpro Drivers] Fox Error 1[Microsoft][ODBC Visual foxpro Drivers] Driver's SQLGetConnectedAttr failed
I am trying to fix this problem but really donno what to do
Visual FoxPro2
|