Forum Discussion

Lorian's avatar
Lorian
Advocate II
8 years ago

Calling views or stored procedures

Hello,

 

When importing data using the refresh schedule on the Report Server - is there a performance difference between calling a view or executing a stored procedure? What about if it's being refreshed multiple times a day? Or is it solely dependent on the query's performance on my SQL servers?

 

Which do you prefer to use?

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,

     

    both methods create a execution plan on the SQL Server. You must beware of parameter sniffing by SP.

    But in my mind there is no opposite on the performance. But I prefer Views, these are gives me a better handling  on the filtering