Jean-Marc
2008-09-06 15:05:03 UTC
For the query below SSMAA tell me Identifier name might cause problems
at 2 places.
Can you tell me where I can find guidelline to eliminate these warning.
or
Can you tell me what are the warning?
Here access the query
SELECT DISTINCTROW WIP_HIERARCHY_TABLE.CommonKey,
WIP_HIERARCHY_TABLE.ITEM_NUMBER, WIP_HIERARCHY_TABLE.PART_NUMBER,
WIP_HIERARCHY_TABLE.part_cg_status, WIP_HIERARCHY_TABLE.part_an_grp,
WIP_HIERARCHY_TABLE.part_an_dtl, WIP_HIERARCHY_TABLE.part_weight_code,
WIP_HIERARCHY_TABLE.part_pkg_code, WIP_HIERARCHY_TABLE.bay_number_entered,
WIP_HIERARCHY_TABLE.Item_Auto_No, WIP_HIERARCHY_TABLE.Entity_Type,
WIP_ASSY_TABLE.user_id, WIP_HIERARCHY_TABLE.user_id
FROM WIP_ASSY_TABLE INNER JOIN WIP_HIERARCHY_TABLE ON
WIP_ASSY_TABLE.Commonkey = WIP_HIERARCHY_TABLE.CommonKey
WHERE (((WIP_HIERARCHY_TABLE.CommonKey)=[Assy_Number_Parameter]) AND
((WIP_HIERARCHY_TABLE.Entity_Type)="Assy" Or
(WIP_HIERARCHY_TABLE.Entity_Type)="ASSY") AND
((WIP_ASSY_TABLE.user_id)=[User_Id_Parameter]) AND
((WIP_HIERARCHY_TABLE.user_id)=[User_Id_Parameter]))
ORDER BY WIP_HIERARCHY_TABLE.CommonKey, WIP_HIERARCHY_TABLE.ITEM_NUMBER,
WIP_HIERARCHY_TABLE.PART_NUMBER, WIP_HIERARCHY_TABLE.Item_Auto_No;
Here the SQL2008 query.
CREATE VIEW dbo.[Fill_Data_Assy]
AS
/*
* Generated by SQL Server Migration Assistant for Access.
* Contact ***@microsoft.com or visit
http://www.microsoft.com/sql/migration for more information.
*/
SELECT TOP 9223372036854775807 WITH TIES
WIP_HIERARCHY_TABLE.CommonKey,
WIP_HIERARCHY_TABLE.ITEM_NUMBER,
WIP_HIERARCHY_TABLE.PART_NUMBER,
WIP_HIERARCHY_TABLE.part_cg_status,
WIP_HIERARCHY_TABLE.part_an_grp,
WIP_HIERARCHY_TABLE.part_an_dtl,
WIP_HIERARCHY_TABLE.part_weight_code,
WIP_HIERARCHY_TABLE.part_pkg_code,
WIP_HIERARCHY_TABLE.bay_number_entered,
WIP_HIERARCHY_TABLE.Item_Auto_No,
WIP_HIERARCHY_TABLE.Entity_Type,
WIP_ASSY_TABLE.user_id AS [WIP_ASSY_TABLE_user_id],
WIP_HIERARCHY_TABLE.user_id AS [WIP_HIERARCHY_TABLE_user_id]
FROM
(
SELECT DISTINCT *
FROM WIP_ASSY_TABLE
) AS WIP_ASSY_TABLE
INNER JOIN
(
SELECT DISTINCT *
FROM WIP_HIERARCHY_TABLE
) AS WIP_HIERARCHY_TABLE
ON WIP_ASSY_TABLE.Commonkey = WIP_HIERARCHY_TABLE.CommonKey
WHERE (
((WIP_HIERARCHY_TABLE.CommonKey) = [Assy_Number_Parameter]) AND
((WIP_HIERARCHY_TABLE.Entity_Type) = 'Assy' OR
(WIP_HIERARCHY_TABLE.Entity_Type) = 'ASSY') AND
((WIP_ASSY_TABLE.user_id) = [User_Id_Parameter]) AND
((WIP_HIERARCHY_TABLE.user_id) = [User_Id_Parameter]))
ORDER BY
WIP_HIERARCHY_TABLE.CommonKey,
WIP_HIERARCHY_TABLE.ITEM_NUMBER,
WIP_HIERARCHY_TABLE.PART_NUMBER,
WIP_HIERARCHY_TABLE.Item_Auto_No
GO
at 2 places.
Can you tell me where I can find guidelline to eliminate these warning.
or
Can you tell me what are the warning?
Here access the query
SELECT DISTINCTROW WIP_HIERARCHY_TABLE.CommonKey,
WIP_HIERARCHY_TABLE.ITEM_NUMBER, WIP_HIERARCHY_TABLE.PART_NUMBER,
WIP_HIERARCHY_TABLE.part_cg_status, WIP_HIERARCHY_TABLE.part_an_grp,
WIP_HIERARCHY_TABLE.part_an_dtl, WIP_HIERARCHY_TABLE.part_weight_code,
WIP_HIERARCHY_TABLE.part_pkg_code, WIP_HIERARCHY_TABLE.bay_number_entered,
WIP_HIERARCHY_TABLE.Item_Auto_No, WIP_HIERARCHY_TABLE.Entity_Type,
WIP_ASSY_TABLE.user_id, WIP_HIERARCHY_TABLE.user_id
FROM WIP_ASSY_TABLE INNER JOIN WIP_HIERARCHY_TABLE ON
WIP_ASSY_TABLE.Commonkey = WIP_HIERARCHY_TABLE.CommonKey
WHERE (((WIP_HIERARCHY_TABLE.CommonKey)=[Assy_Number_Parameter]) AND
((WIP_HIERARCHY_TABLE.Entity_Type)="Assy" Or
(WIP_HIERARCHY_TABLE.Entity_Type)="ASSY") AND
((WIP_ASSY_TABLE.user_id)=[User_Id_Parameter]) AND
((WIP_HIERARCHY_TABLE.user_id)=[User_Id_Parameter]))
ORDER BY WIP_HIERARCHY_TABLE.CommonKey, WIP_HIERARCHY_TABLE.ITEM_NUMBER,
WIP_HIERARCHY_TABLE.PART_NUMBER, WIP_HIERARCHY_TABLE.Item_Auto_No;
Here the SQL2008 query.
CREATE VIEW dbo.[Fill_Data_Assy]
AS
/*
* Generated by SQL Server Migration Assistant for Access.
* Contact ***@microsoft.com or visit
http://www.microsoft.com/sql/migration for more information.
*/
SELECT TOP 9223372036854775807 WITH TIES
WIP_HIERARCHY_TABLE.CommonKey,
WIP_HIERARCHY_TABLE.ITEM_NUMBER,
WIP_HIERARCHY_TABLE.PART_NUMBER,
WIP_HIERARCHY_TABLE.part_cg_status,
WIP_HIERARCHY_TABLE.part_an_grp,
WIP_HIERARCHY_TABLE.part_an_dtl,
WIP_HIERARCHY_TABLE.part_weight_code,
WIP_HIERARCHY_TABLE.part_pkg_code,
WIP_HIERARCHY_TABLE.bay_number_entered,
WIP_HIERARCHY_TABLE.Item_Auto_No,
WIP_HIERARCHY_TABLE.Entity_Type,
WIP_ASSY_TABLE.user_id AS [WIP_ASSY_TABLE_user_id],
WIP_HIERARCHY_TABLE.user_id AS [WIP_HIERARCHY_TABLE_user_id]
FROM
(
SELECT DISTINCT *
FROM WIP_ASSY_TABLE
) AS WIP_ASSY_TABLE
INNER JOIN
(
SELECT DISTINCT *
FROM WIP_HIERARCHY_TABLE
) AS WIP_HIERARCHY_TABLE
ON WIP_ASSY_TABLE.Commonkey = WIP_HIERARCHY_TABLE.CommonKey
WHERE (
((WIP_HIERARCHY_TABLE.CommonKey) = [Assy_Number_Parameter]) AND
((WIP_HIERARCHY_TABLE.Entity_Type) = 'Assy' OR
(WIP_HIERARCHY_TABLE.Entity_Type) = 'ASSY') AND
((WIP_ASSY_TABLE.user_id) = [User_Id_Parameter]) AND
((WIP_HIERARCHY_TABLE.user_id) = [User_Id_Parameter]))
ORDER BY
WIP_HIERARCHY_TABLE.CommonKey,
WIP_HIERARCHY_TABLE.ITEM_NUMBER,
WIP_HIERARCHY_TABLE.PART_NUMBER,
WIP_HIERARCHY_TABLE.Item_Auto_No
GO