Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why would this query return duplicates
Message
De
22/01/2009 14:28:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01376377
Message ID:
01376383
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
>I want to get all table names from my database starting with some prefix. I put code like this
>
>SELECT ObjectName FROM DBC() WHERE ObjectType = 'Table' AND PROPER(ObjectName) = 'Something' ;
>ORDER BY 1 ;
>
>
>and it's returning multiple records for one table. Is it an indication that database container may be corrupted?
>
>Thanks in advance.

Try to recreate the index of the dbc. Looking at your SQL-statement and the index of a dbc, I guess that is it.
Another possibility: I hope you didn'tfall in the trap of SET DELETED OFF? In that case it's just setting it ON.

HTH,

Lennert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform