简体   繁体   English

查询设计器返回不需要的实体字段

[英]Query designer returns an unwanted entity field

I have a Reporting Services Project on SQL Server 2008 R2.我在 SQL Server 2008 R2 上有一个报告服务项目。 The point is to provide users with a data model they can use as a data source for Report Builder 3. So I have created my data source views as usual and then the Report model with no problems.重点是为用户提供数据 model,他们可以将其用作 Report Builder 3 的数据源。因此,我照常创建了数据源视图,然后毫无问题地创建了报表 model。

For example in my model I have a table Student which has a relationship with table Course using a CourseSK key (one to one).例如,在我的 model 中,我有一个表Student ,它使用CourseSK键(一对一)与表Course有关系。 So I am using student.CourseSK = course.CourseSK to return to the query designer only the course.Coursename field under the Student entity (I have hidden everything else from the course table.)因此,我使用student.CourseSK = course.CourseSK仅将Student实体下的course.Coursename字段返回给查询设计器(我已从course表中隐藏了其他所有内容。)

The problem is that when I test it in ReportBuilder, using the query designer when I add field CourseName from entity student in the dataset, it returns two fields instead of one: CourseName and Course where course returns some values like AAAAAEAA = .问题是,当我在 ReportBuilder 中对其进行测试时,当我从数据集中的实体student添加字段CourseName时使用查询设计器,它返回两个字段而不是一个: CourseNameCourse其中 course 返回一些值,例如AAAAAEAA = I guess is some object reference but can be very confusing to the end user.我猜是一些 object 参考,但最终用户可能会非常困惑。 How can I make this disappear?我怎样才能让它消失?

Indeed it turns out to be a unique entity identifier used for aggregating fields with non unique values.事实上,它是一个唯一的实体标识符,用于聚合具有非唯一值的字段。 It cannot be removed from the data set.它不能从数据集中删除。 More information here Answer更多信息在这里回答

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM