Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving views from Database to other Database
Message
From
21/03/2000 23:12:17
 
 
To
21/03/2000 22:42:44
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00348709
Message ID:
00348723
Views:
16
Hi Mo,

I assume it to be local views. Extract the syntax of the sql statemnet and create the view in your new db.
Pay attention to the table names referred in the sql statement, they must point to a valid tablename wich might be not in your newdb.

Play around with something like this (just hacked and not tested):

viewsql=dbgetprop("myview","view","SQL") &&extract sql view syntax
command="create sql view newview as "+viewsql &&create command to create view
set database to mynewdb && set target db
&command && create view


regards
Giesbert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform