以下查询不断给我错误:
INSERT INTO [tableFinalData] (ClientGroupCode, WorkActivity, SubProj, ClientCode, Client
, ProjectYear, StaffCode, ProjectCode, Hours, Rate, Amount, BillingStatus)
SELECT g.EntityNo AS [GroupName]
, dbo.vw_TransWIPGeneric.WorkCodeNo
, dbo.vw_TransWIPGeneric.WorkCodeName
, dbo.vw_TransWIPGeneric.EntityNo
, dbo.vw_TransWIPGeneric.EntityName
, dbo.vw_TransWIPGeneric.ProjectTypeYearNo
, dbo.vw_TransWIPGeneric.EmployeeNo
, dbo.vw_TransWIPGeneric.SubprojectTypeNo
, dbo.vw_TransWIPGeneric.Quantity
, dbo.vw_TransWIPGeneric.Rate
, dbo.vw_TransWIPGeneric.Amount
, dbo.vw_TransWIPGeneric.BillingStatus
FROM ((dbo.vw_TransWIPGeneric
INNER JOIN dbo.EntityConnections AS [c] ON c.EntityId = dbo.vw_TransWIPGeneric.EntityId)
INNER JOIN dbo.Entities AS [g] ON c.GroupId = dbo.vw_TransWIPGeneric.EntityId)
''IN [ODBC;Driver={SQL Server};Server=FRANSWINDOWS10\SQLEXPRESS;Database=D:\USERS\FRANS\DOCUMENTS\WORK\SQL DATABASE\CATC14.MDF;Trusted_Connection=yes];
当我在 SQL Server 中运行它时,它运行得很好。
错误:[Microsoft][ODBC Microsoft Access Driver] JOIN 操作中的语法错误。错误代码:-3510