The SQL for one of my SSRS reports uses a simple Scalar function to return a value for a column in each row. Everything works fine when I\'m in Visual Studio but as soon as