Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating view programmatically
Message
From
23/10/2001 11:42:04
 
 
To
23/10/2001 11:33:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00572083
Message ID:
00572089
Views:
31
Hi!

1. There are no much of complexity, you can create view using "&" for query in the CREATE SQL VIEW command. Then configure view parameters to make it updatable using DBSetProp() function.

2. It is not a good idea because it is slow to recreate all views at the each application start, though sometimes it might be needed depended on what your final goal of making things this way. It is not worth to do it just to have several different versions of the view.


>I am considering creating view programatically, instead of saving the definitions in the database. I am not (currently) asking how to do it; I will try to figure it out from the help, first.
>
>I think I may gain some flexibility, like having several slightly different versions of a view (say, with different parameters).
>
>What I do want to ask is:
>
>1) Is it very complicated to create views programatically?
>
>2) Is it worth the trouble? That is, perhaps there are too many problems involved, or perhaps there are better ways to do it.
>
>TIA, Hilmar.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform