Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unknown error in SQL view
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00511382
Message ID:
00511397
Views:
18
Hi!

The VFP view designer cannot display the query correctly. It does not cover all different SELECT staement you might use. thuis you cannot create such queries in the View designer. You can, however, use the CREAET SQl VIEW command. this way opening the view in view designer will spoil the query. Or just will not open the view at all. Just try to create a view with SELECT ... UNION SELECT... statement. It will be created and you even will be able to make it updatable with some effort and playing around the DBSETPROP function calls. However, you will never open it in the View designer, because it cannot represent such query visually in the view designer.

There is also advanced view designer somewhere in the files section here at UT.

HTH.


>Hi all,
>I get an unknown error in creating sql view.
>Below is a sql statement issue by me:
>
>CREATE SQL VIEW report1 REMOTE CONNECTION connect1 AS SELECT * ;
> FROM vendor WHERE vcode>='H' and (vtype='T' or region='CA') ;
> ORDER BY vcode, vname
>
>And below is the sql statement created itself:
>(can be previewed when modify the sql view)
>
>SELECT * FROM vendor WHERE vcode>='H' and vtype='T' or (region='CA') ;
> ORDER BY vcode, vname
>
>The difference is the bracket : (vtype='T' or region='CA') do not
>correct, which generated as : (region='CA')
>This will cause a big difference in results generated.
>Can anyone explain this and how to correct it ?
>
>Thanks,
>Samuel
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