Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What database a table belongs to
Message
De
13/10/2008 12:49:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/10/2008 11:37:20
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:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01353197
Message ID:
01354644
Vues:
19
>There is the indbc() function. ie
>if INDBC("mytable","TABLE") ...
>
>Also, a foxpro dbc is itself a foxpro table so you can SELECT * FROM C:\MYFPAPP\DATA\mydatabase.dbc and you will see that you can refine the query with objecttype and objectname values to see if your table is present in the dbc.
>
>Jeff

InDbC() doesn't tell you to what DBC a table belongs to. It tells you if an object is a member of 'current DBC'. CursorGetProp('Database', ....) was the correct answer as Borislav pointed to.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform