Hi,
i am using VFP9 and SQL server 2005.
I made a connection to a database :
After 5 to 10 minutes the connection is gone. To fix that problem, the IdleTimeout is set to 0.
But this does not help. In VFP7 i am using the same connection without problem.
What is wrong?
Thanks
EC
i am using VFP9 and SQL server 2005.
I made a connection to a database :
Code:
STORE SQLSTRINGCONNECT('dsn=&database;uid=&datuser;pwd=&datpwd') TO handle
IF handle <= 0
WAIT WINDOW 'Error'
else
= MESSAGEBOX('Connection OK', 16, 'SQL Connect OK')
ENDIF
After 5 to 10 minutes the connection is gone. To fix that problem, the IdleTimeout is set to 0.
Code:
nSet=SQLSETPROP(Handle, "IdleTimeout", 0 )
IF nSet > 0
=MESSAGEBOX("Timeout set to 0",0,"Connection Results")
ELSE
=MESSAGEBOX("Error setting Timeout",0,"Connection Results")
ENDIF
But this does not help. In VFP7 i am using the same connection without problem.
What is wrong?
Thanks
EC