Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying a view from one database to another
Message
De
28/05/2001 13:31:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
28/05/2001 12:39:24
Dave Nantais
Light speed database solutions
Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00511943
Message ID:
00511952
Vues:
14
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform