Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Performance hit with SQL Server views (not VFP views)?
Message
From
12/04/2005 13:06:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/04/2005 12:52:31
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:
01003862
Views:
14
>Here is the scenario:
>
>Existing VFP code, moving to SQL Server, DBA wants to change field names to match company standards, we are using CursorAdapters to access SQL Server and create VFP cursors.
>
>I know I can define the CAs to map new field names to old field names so much of the existing code can continue to use the old field names. However, DBA is offering to create SQL Server views to present the data with old field names.
>
>I've never used SQL Server views, so I'm wondering if there is much of a performance hit when they are used vs just going directly against the tables and mapping the fields in the CA definition. Seems to me that SQL Server view would add some overhead, but what do I know? :-)
>
>Awaiting your wisdom...

SQL server views might be faster (especially if using partioning). Also another option is to use functions (like views but you can pass parameters) which are even faster IMHO.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform