Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying a view from one database to another
Message
From
28/05/2001 13:31:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/05/2001 12:39:24
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00511943
Message ID:
00511952
Views:
13
>Using Stonefield Database toolkit I can copy and paste a view from one database into another. Unfortunately a client has 'legacy data' not using Stonefield.
>Is there any way to copy and paste views between databases in regular VFP?

1)
-Do home()+'tools\gendbc\gendbc' and point your source dbc
-This would create a prg version of your database and tables
-Modify comm < saved prg name >
-Open your target DBC
-Locate the function that says 'MakeView(...)' and select code
-Right click and Execeute selection

2)
-Open database
-Modify view
-Right click to view SQL
-Copy SQL
-In command window open target DBC
-Write
create SQl view 'newviewname' as < paste here >
and [enter]

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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform