Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What command can not be used for view?
Message
De
15/10/2004 04:28:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/10/2004 04:05:53
Florence Lee
Visual Solutions (M) Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00951337
Message ID:
00951653
Vues:
6
>Hi,
>
> Thanks for your reply. Can i clerify something, if i use view, i only can use those function that are available in the backend databawse ( for eg, sql server). If the backend database not support, so even i use view also can not use the specific function like recno()
>
>regards,
>
>florence

Florence,
Depends on which part of RV you're talking about. If you're asking for its definition SQL you can only use SQL server functions. If you're asking for functions where you're using the view then you can use VFP functions. ie:

create sql view myView remote connection myConn as select ... where myDate < datetime() ...

wouldn't work as SQL server doesn't understand VFP function datetime() but understand getdate().

create sql view myView remote connection myConn as select * from Northwind.dbo.employees

use myDBC!myView
locate for hire_date > datetime(1998,5,1)
select * from myView where hire_date between gomonth(date(),-10) and date()
select * from myView where recno() between 3 and 5
...

works.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform