TSQL view select optimization when function is present
问题 I have this simple SQL as a source in a SSIS task: Select * from budgetview the source is: CREATE VIEW [dbo].[BudgetView] AS SELECT DISTINCT Country, SDCO AS Company, SDAN8 AS Customer, SDLITM AS PrintableItemNumber, dbo.fn_DateFromJulian(SDIVD) AS Date, SDPQOR/100.0 AS Quantity, SDAEXP/100.0 AS Value, SDITWT/10000.0 AS Weight FROM dbo.F553460 There are NO advices for indexes, every thing seems optimized. The function fn_DateFromJulian source is: CREATE FUNCTION [dbo].[fn_DateFromJulian] (