Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy database
Message
De
02/09/2019 08:39:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/09/2019 07:22:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01670502
Message ID:
01670516
Vues:
43
>Thanks sir, your codes work fine
>
>Now I have these codes
>
>
>SELECT TABLE_NAME FROM at20.INFORMATION_SCHEMA.Tables WHERE TABLE_TYPE = 'BASE TABLE'
>
>
>Above codes work fine in sqlserver management query but I am trying to convert these in vfp like this
>
>
>If SQLExec(m.con1, "SELECT TABLE_NAME FROM concat([<<m.db1>>],'.',INFORMATION_SCHEMA.Tables) WHERE TABLE_TYPE = 'BASE TABLE'",'tablist') >0
>
>
>but it shows nothing
>I want to replace at20 from variable m.db1
>
>Please

You cannot use concat() for a table name.
If SQLExec(m.con1, textmerge("SELECT TABLE_NAME"+;
 " FROM [<<m.db1>>.INFORMATION_SCHEMA.Tables]"+;
 " WHERE TABLE_TYPE = 'BASE TABLE'"),'tablist') >0
Ç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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform