Вопрос

The ORM we are using (LLBL) does not easily support the NOEXPAND keyword on selecting from SQL Server Indexed Views, which, as I understand it, pretty much negates the purpose of the Indexed View.

I normally steer clear from Stored Procedures for a few reasons (that I will attempt to avoid a flame war by not mentioning), so my hesitation at this point, I admit, is partly due to a lack of recent working experience with SQL Server and Stored Procedures.

Is there anything I need to be aware of that would cause the Indexed View not to work if I called it from a Stored Procedure.

Это было полезно?

Решение

Is there anything I need to be aware of that would cause the Indexed View not to work if I called it from a Stored Procedure.

No! Indexed Views are works fine when you call them from a SP. You can use Indexed Views like a normal table in many (not 100% sure whether all) cases.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top