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:35:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/05/2001 13:31:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00511943
Message ID:
00511953
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
>>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

2nd option doesn't copy properties like sendupdates(), updatenamelist() etc etc
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
Reply
Map
View

Click here to load this message in the networking platform