In this case GetAlapJaratTipus is a scalar function. If I start typing GetAlap after '=' the popup contains and lets me select GetAlapJaratTipus and puts 'dbo.GetAlapJaratTipus' into the code. But this only works if I need a function in my default schema as schemas do not appear in the popup. If I type 'dbo' (or any other schema name) the schema is not shown, therefore it cannot allow expanding it to filter further. Also, if I type 'dbo' (or any other schema) followed by '.' the popup no longer shows scalar functions, it only contains tables, views, and table functions, none of which qualify as valid on the right side of an assignment operator for a declared variable.