Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy database
Message
From
02/09/2019 08:39:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/09/2019 07:22:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01670502
Message ID:
01670516
Views:
42
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform