Re: Copying views from one db to another

From: Stefan Wuebbe (stefan.wuebbe_at_gmx.de)
Date: 08/31/04


Date: Tue, 31 Aug 2004 05:14:44 +0200


"twnety0ne@yahoo.com" schrieb
> "Stefan Wuebbe" wrote:
>
>> Ken,
>>
>> You can use "gendbc.prg" in the Vfp Home() folder and
>> run it to get a result.prg containing your view definitions.
>>
>>
> Thank you Stefan for your reply, I am a newbie can you please explain in a
> more detailed manner...thank you in advance.

You can run it from the command window
    DO HOME() + 'tools\gendbc\gendbc.prg'

Then gendbc wants to know which database.DBC it should
analyze and where to put the results.PRG
Afterwards, you can have a look at the result, say you named
it "results.prg":
    Modify Command results.prg

... and search Ctrl+F for your view name(s).
The view definition is one CREATE VIEW line plus a bunch
of DbSetProp() statements setting the view / field's properties,
like "SendUpdates", "KeyField", "Tables" etc.

Running the "results.prg" as it is would give you an entire new
(empty) database if you want.
If you just copy and run those lines related to your particular
view, you can re-create the view only, say in another database
container
    Create Database yourNew.dbc
    Create View ...
    DbSetProp(...

hth
-Stefan



Relevant Pages

  • Re: Grids... simple, but I dont know...
    ... In the command window, open your database. ... different vehicle, issue Requery, and then browse. ... I created it putting "myview" in the ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Grids... simple, but I dont know...
    ... In the command window, open your database. ... set the view parameter variable to one vehicle ... I created it putting "myview" in the ...
    (microsoft.public.fox.programmer.exchange)
  • Re: How to add new thread to CDialog
    ... A new window was added, which is a modeless CDialog having a CEdit box, this edit box acts as a Command window in which USER can type in commands, which are basically function calls to the database. ... when the database query finishes, that thread sends a user-defined message back to the Command Window dialog, along with a pointer to a data area containing the result. ...
    (microsoft.public.vc.language)
  • Re: Limitation in Number of Fields ...
    ... Post a URL to the form online ... | The last field that is captured by the database in called [PhysicianName] ... | "Stefan B Rusynko" wrote: ...
    (microsoft.public.frontpage.programming)
  • Re: newbie problems with null values
    ... Stefan ... > 'design' your database both at the database and locally. ...
    (microsoft.public.dotnet.languages.vb)

Loading