Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stored Procedure always faster?
Message
De
03/09/2006 11:21:07
 
 
À
03/09/2006 10:55:23
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Database:
MS SQL Server
Divers
Thread ID:
01140442
Message ID:
01150597
Vues:
36
>>I am interested in combining the power of SQL views for stuff like calculated totals that can be maintained as the underlaying tables are changed in order to reduce the amount of stuff that has to come over in a query, but remote views do seems more flexible that approaches that were pushed pretty hard a number of years ago saying Fox/SQLServer apps should completely relie on SPs.

>I'm at a loss to think of an example where a view would be better than a dynamic query.
>

I didn't express what I said about SQL views very well. I was talking about using an indexed SQL View ( with schemabinding ) for scaler aggregate functions so the totals on the back end are basically always current and can be accessed from remote views without further processing and network traffic. It seems that would be a good example of combining what the front end does best ( creating dynamic queries ) with the kind of pre-processed data handling that is best done on the back end.

Did that make more sense?


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform