I chased my tail for hours on this one, but finally found the combination that works. Here’s the basic layout Function GetProjects(ID as int64, Name as string) Dim arParams As SqlParameter() = New SqlParameter(2) {} arParams(0) = New SqlParameter(“@ID”, IIf(ID…