You receive a connection busy error message when you try to open a remote view to SQL Server tables (217082)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
This article was previously published under Q217082 SYMPTOMS
When you try to open a remote view by using a shared connection to access Microsoft SQL Server tables in Microsoft Visual FoxPro 7.0 and earlier versions, you may receive the following error message:
Connection "connection name" is busy
. RESOLUTION
Set the FETCHSIZE property of remote views using shared connections to a value of -1.
OPEN DATABASE MYDATA
=DBSETPROP('MyView','View','FetchSize',-1)
-or-
OPEN DATABASE MYDATA
USE MyView IN 0
SELECT MyView
=CURSORSETPROP('FetchSize',-1)
Setting the FetchSize Property of the remote view to -1 causes Visual FoxPro to retrieve the complete result set (within the limits set by the MaxRecords setting).
Modification Type: | Major | Last Reviewed: | 3/14/2005 |
---|
Keywords: | kbprb kbSQLProg KB217082 |
---|
|