我正在使用vb.net windows应用程序。当我尝试从datagrid视图中选择数据适配器和数据集后,通过“查询生成器”添加查询时,我收到此错误:
the schema returned by query is differ from base query
我的查询就像这样:
SELECT
CompanyMaster_tbl.CompanyName,
DepartmentMaster_tbl.dtName,
DepartmentMaster_tbl.dtPhone,
DepartmentMaster_tbl.dtEmail
FROM
CompanyMaster_tbl
INNER JOIN DepartmentMaster_tbl ON CompanyMaster_tbl.Cid = DepartmentMaster_tbl.cId
首先,我将公司名称添加到数据网格视图中,选择数据源和特定的表名,但单击“确定”按钮时出现错误。