Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to replace VFP cursors
Message
From
11/08/2011 13:49:31
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Vista
Network:
Windows XP
Database:
Jet/Access Engine
Application:
Desktop
Miscellaneous
Thread ID:
01520206
Message ID:
01520736
Views:
45
>I would have thought that in VFP when you sql passthrough, you produce a cursor that you can then joinwith vfp tables and/or other cursors.
>

That's correct, but you can't join a VFP cursor with tables in SQL Server. SQL Server can't see the VFP cursor. To make the data visible to SQL Server, we are sending the data to a temporary table. In other words, instead of sending a list of keys with the IN() function, we are sending SQL Server the whole cursor, after which it can join with any data. Not necessarily better, just a different approach, depending on your needs.

By the way, why Access? SQL Server Express is free, or if complexity is the problem, maybe the new VS LightSwitch can help with that. I'm no .NET expert, but it seems geared to work best with SQL Server. The limitations you run into with Access may actually cause more complexity than if you used SQL Server from the start. Just a thought.
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform