Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on View Designer Filtering.
Message
 
 
To
14/02/2001 10:32:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00475680
Message ID:
00475746
Views:
50
>Roland,
>
>I don't have a solution for remote views since I don't use them. In case you could use SQL passthrough, the following line should work:
>
>
>SQLEXEC(lnSql, "SELECT whatever FROM MyTable WHERE DATEDIFF(day, BirthDate, getdate()) = 0")
>
>

Interesting workaround. I use CONVERT() but this looks better. Thanks.

>As Vlad mentioned, you need to use functions supported by SQL Server (T-SQL) when using SPT.
>
>This is different with remote views. I thought one of the advanteges of remote views was that you can define a view that works with different backends. Therefore I suspect above syntax won't work for RVs. Maybe an expert on remote views can chime in?
>

Remote views are just an elaborate means by MS to wrap the SPT functionality into a nice neat little ball. When you create a remote view, VFP actually translates that into SPT and sends it to the backend. So the same rules that govern what runs in SPT also apply to remote views.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform