Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Busy Connection
Message
 
À
31/03/2004 09:23:05
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00891150
Message ID:
00891162
Vues:
24
Directly out of TechNet ... you might want to try this first.


This article was previously published under Q217082

SYMPTOMS

When attempting to open a Remote View using a shared connection to access SQL Server tables, the following error message may appear:

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).
MORE INFORMATION
The default FetchSize Property value for remote views is 100.

The error message indicates that the shared remote connection is in use by another executing statement. This behavior occurs when multiple remote views have been defined with the following characteristics:


Using a shared remote connection to the server.
Accessing the same base table(s).
The number of records being returned is greater than or equal to the FETCHSIZE property of the view.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform