Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem requerying a remote view
Message
De
09/06/2004 22:52:37
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00909860
Message ID:
00912051
Vues:
16
>No, I'm not using any function, but my the sql statement that I use to create the view contains a 'union'. Could this be the problem ?

It could be that some of the data in the parts of the union are converted into different lengths (this holds for both numeric and string fields). Now when you requery a view and the lengths of the fields in the first record are not the same as they were before the requery, Fox will report that the structure has changed. The change may come from either part of the query, which makes this more difficult to fix.

In local views, we can fix that using field+000000000.00 or padr() function; in remote views you'd have to use cast() into numeric(n,m) and char(n) to make sure the fields are the same width each time.

To find which fields exactly give you the problem, open the view several times using different parameters from the command window, and display structure after each USE. Find which fields change length.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform