我有一个奇怪的问题,我试图在动态内部使用报告,我创建了一个再次运行Filtered Views的查询:
SELECT TOP 10 Activity.ActivityOn, Activity.Name, Activity.activitytypecodename, Activity.subject, Activity.owneridname, Activity.createdon FROM (
SELECT 'Project' as ActivityOn, project.new_name AS Name, activitytypecodename, subject, activity.description, activity.owneridname, activity.createdon FROM dbo.Filterednew_project project
JOIN dbo.FilteredActivityPointer activity on project.new_projectid = activity.regardingobjectid
WHERE project.new_projectid = @ProjectId AND (NOT activity.statecode = 2)) Activity ORDER BY Activity.createdon DESC
然而,当我尝试运行在Dynamics中使用它的报表时,没有返回任何行(我以自己的身份登录,具有完整的sys admin特权。)然而,当我在SSRS上运行它时(通过/ reports)然后它返回行。 (这也和我一样。)
有没有人对错误有任何想法? (没有错误,它只是无法在动态中返回数据。)