Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why would this query return duplicates
Message
From
22/01/2009 14:28:54
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01376377
Message ID:
01376383
Views:
9
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform