Both / Neither. It depends on the what you are doing (query, update, stored procedures), the Database you are talking to (MS SQL Server, Oracle, MySQL, etc.) and the ODBC / OLEDB drivers you are using.
It's always best to try some sample code in your situation to determine what's best for you.
It's been suggested by some, that in many cases, SPT is best for queries, and ADO is best for updates and SP calls. In other words, one solution may not be the best for all cases.
ADO is great in VB, but I believe adds unnecessary complicaions in VFP. Its aim is to give you a recordset that you can easily navigate, update, etc. But VFP already has its own excellent features for those tasks.
Of course, it's all a matter of personal style and preference, but I would go with SQL Pass-Through almost all the time. Remote views are another possibility: they are less capable than SPT, but much simpler to work with.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.