当sql在访问中工作时,Ole DB Provider会生成语法错误

时间:2014-11-13 10:24:37

标签: sql-server database ole

我有一个奇怪的问题(至少对我来说很奇怪)。当我在ole db提供程序中尝试此sql时,它会生成语法错误,但是当我在ms访问中运行它时,它会提示我输入所有参数,并且在我完成语法后效果很好。我的问题基本上是,我应该从哪里开始寻找错误?

这是sql。

 UPDATE ProjectDataTable SET Code = @Code, Description = @Description, ProjectGroup = @ProjectGroup, ProjectManager = @ProjectManager, Parent = @Parent, External = @External, Invoiceable = @Invoiceable, CustomerID = @CustomerID, Customer = @Customer, FixedClient = @FixedClient, AllowPosting = @AllowPosting, ExternalContact = @ExternalContact, TimesheetEntry = @TimesheetEntry, AccessControl = @AccessControl, ContactPerson = @ContactPerson, Assignment = @Assignment, Activity = @Activity, ExtOrder = @ExtOrder, Contract = @Contract, SalesContact = @SalesContact, DateFrom = @DateFrom, DateTo = @DateTo, ActualCurrency = @ActualCurrency, DatePctCompleted = @DatePctCompleted, PctCompleted = @PctCompleted, GLObjectValue1ID = @GLObjectValue1ID, GLObjectValue1 = @GLObjectValue1, GLObjectValue2ID = @GLObjectValue2ID, GLObjectValue2 = @GLObjectValue2, XGLID = @XGLID, XGL = @XGL, InvoiceProject = @InvoiceProject, InvoiceRule = @InvoiceRule, Frequency = @Frequency, Day = @Day, IncPerType = @IncPerType, DateNextCutOff = @DateNextCutOff, DateLastCutOff = @DateLastCutOff, PeriodStart = @PeriodStart, NoOfPeriods = @NoOfPeriods, PriceListID = @PriceListID, PriceList = @PriceList, PriceGroup = @PriceGroup, Overview = @Overview, Info = @Info, InternalInfo = @InternalInfo, Created = @Created, Modified = @Modified WHERE GLObjectValue1ID = 'afb850dd-985a-417e-bc7e-e07678e7701e'

0 个答案:

没有答案