Select * from Denormalized_V
where (@Instructor = '<ALL>' and [Section Code] in (@SectionList)) or
(@Instructor <> '<ALL>' and [Section code] in (@SectionList) and [Instructor Name] Like @Instructor)
order by [subject], [course], [course section], [respondent code]
并且新SQL是:
Select * from Denormalized_V
where Term = @Term and [Subject] = @Subject and Course in (@Courses) and
((@Instructors = '<ALL>') or ([Instructor Pid] = @Instructors or [Instructor Pid] = 'ALL')) and [Course Section] in (@Sections)
order by [subject], [course], [course section], [respondent code]
我在查询设计器中执行execute事件并且它返回值,所以我不知道为什么我将&#34; Object引用设置为没有设置为对象的实例&#34;我点击确定错误。
之前有没有人见过这种类型的pf行为?
答案 0 :(得分:0)
我明白了。这是我的错误。我有一个在SQL中错误命名的参数。其中一个简单的错误需要永远捕捉。