What Jim said is an IT architecture best practise – have the data source provide the stored procedure. It establishes an interface (contract) that frees you from knowing the underlying data schema or having to deal with changes to it; and it is simpler to call.
The only caveat is if high availability is important, and if so, and if the data source is on another server, you could have a nightly copy of the source table to a local table and query that instead.
Peter Heggie
Author
Replies
Viewing 1 reply thread
The forum ‘Cloverleaf’ is closed to new topics and replies.