Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote view + NoDataOnLoad -> no filters/group by?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00746563
Message ID:
00746568
Views:
17
Hi!

Why you might need group by, order by and WHERE, when there are NO DATA? :-) VFP just optimizes query for you to get emopty record set by as quick as possible way.

I beleive, when you use Requery() command on your view to get real data, correct SQL statement will be sent to SQL Server.

HTH.

>I am creating a remote view (with tehe view designer) and I need the group by clause. When I view the SQL code, it is okay. When I run the view, it is also okay.
>
>BUT, when I add my view to the dataenviroment (through a framework) and I set the NoDataOnLoad to .T., VFP doesn't send the group by clause to the server (not even other filters I have set). It just sends my selected fields, plus 'where 1=0'...
>
>When I set NoDataOnLoad to .F., everything is allright.
>
>Why is that?
>Is this a bug?
>
>I'm using VFP 7.0 and MS SQL Server 2000.
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
Next
Reply
Map
View

Click here to load this message in the networking platform