Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VIEW taxes network more than underlying SQL SELECT
Message
From
05/03/2008 13:16:06
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01298989
Message ID:
01299017
Views:
22
>You can use ODBC trace or/and SQL Server profiler to see what is sent to >SQL Server in each case.

This is a VFP database so SQL Server is not being used

>I am monitering the network traffic when I open a view versus when I >execute the underlying SQL. I find that the SQL SELECT taxes the network < >5% while opening the view records under 50%. I get the SQL statement from >GENDBC so I am confident that's the view's code. The SELECT statement for >the view is:

>SELECT ManifestHdr.dManifest, ManifestHdr.lOpen, ManifestHdr.iQty,;
> COUNT(ManifestDtl.iPk) AS nScanned, ManifestHdr.iPk,
> Manifesthdr.iFkSystems;
> FROM SN!ManifestHdr;
> LEFT OUTER JOIN SN!ManifestGrp;
> ON ManifestGrp.iFkManHdr = ManifestHdr.iPk;
> LEFT OUTER JOIN SN!ManifestDtl;
> ON ManifestDtl.iFkManGrp = ManifestGrp.iPk;
> WHERE ManifestHdr.iFkSystems = ?vp_ManifestHdr_iFkSystems;
> GROUP BY ManifestHdr.iPk;
> ORDER BY ManifestHdr.dManifest
>Any ideas why this is?
-Malcolm Donald
Accelerant, Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform