我在调试来自iDB2的异常时遇到了问题, SQL0180日期,时间或时间戳值的语法无效...
at IBM.Data.DB2.iSeries.iDB2Exception.throwDcException(MpDcErrorInfo mpEI, MPConnection conn)
at IBM.Data.DB2.iSeries.iDB2Command.reportDCError(Int32 rc)
at IBM.Data.DB2.iSeries.iDB2Command.execute()
at IBM.Data.DB2.iSeries.iDB2Command.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
at Lincare.Enterprise.Database.DatabaseConnection.GetDataTableUsingCommand() in C:\Users\tassefa\Documents\Visual Studio 2015\Projects\AS400Test\Lincare.Enterprise.Database\DatabaseConnection.cs:line 350
at Lincare.Common.DataAccess.Database.RunStoredProcedure[TTarget](Object parameters, Boolean useIdb2DataReader, Boolean excludeSqlStateAndSQLCodeParams, String storedProcedureName) in C:\Legacy\Assemblies\Lincare.Common.DataAccess\Database.cs:line 181
at Lincare.CustomerAccountNotes.Application.NoteManager.SearchNotes(NotesSearchDto notesSearch) in C:\Legacy\Lincare.CenterUtilities\Assemblies\Lincare.CustomerAccountNotes.Application\NoteManager.cs:line 109
at Lincare.Api.CustomerAccountNotes.Controllers.NotesController.Search(NotesSearchDto notesSearch) in C:\Legacy\Lincare.CenterUtilities\Services\Lincare.Api.CustomerAccountNotes\Controllers\NotesController.cs:line 48
问题是我永远无法在本地计算机上获得该异常。我使用相同的参数测试了服务,它可以在我的本地机器上运行,但不能在开发机器上运行。
对于我的机器和服务器,数据库的行为似乎不同。有人遇到过这样的问题吗?请告诉我。