Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Performance hit with SQL Server views (not VFP views)?
Message
 
 
To
12/04/2005 13:21:34
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01003850
Message ID:
01003886
Views:
21
David,

>>SQL server views might be faster (especially if using partioning)...
>
>Why would you expect views to be faster than querying the tables and using "AS" clauses on field lists in the Select? Why would partitioning make a difference in view vs table?


In general, SQL Server views are not going to be faster because SQL Server just stores a view definition. When you execute your select against the view it's combined with stored view definitions and result query is executed.

>>Also another option is to use functions (like views but you can pass parameters) which are even faster IMHO.
>
>Got a simple example?


Look for table valued and inline UDFs in BOL. The query Anylizer has templates for both.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform