H
hbgchy
Unregistered / Unconfirmed
GUEST, unregistred user!
各位大虾:
小弟有一难题:在一MIS系统(Access库,DELPHI开发,无源代码)中作统计报表,原来
做的挺好,后来小弟将数据导出到PARADOX中,尔后又导入到Access中,却发现一部份(大
约有一半左右,均是如下提示)统计报表不能用了,提示:“General SQL error:
[Microsoft][ODBC Microsoft Access 驱动程序] 参数不足,期待是1”,用SQL Monitor
跟踪(Trace Options全部选中),最后几句是这样的:
1715 08:12:10 SQL Execute: Microsoft Access Driver (*.mdb) - Update
suAAStatic LEFT JOIN UsrA88 ON suAAStatic.A0100=UsrA88.A0100 Set
suAAStatic.C8801=UsrA88.C8801 WHERE UsrA88.I9999=(SELECT MAX(I9999) FROM UsrA88
WHERE UsrA88.A0100=suAAStatic.A0100)
1716 08:12:10 SQL Vendor: ODBC - SQLAllocStmt
1717 08:12:10 SQL Vendor: ODBC - SQLExecDirect
1718 08:13:32 SQL Vendor: ODBC - SQLNumResultCols
1719 08:13:32 SQL Vendor: ODBC - SQLRowCount
1720 08:13:32 SQL Data In:MicrosoftAccessDriver(*.mdb)-Rows affected=17096
1721 08:13:32 SQL Stmt: Microsoft Access Driver (*.mdb) - Close
1722 08:13:32 SQL Vendor: ODBC - SQLFreeStmt
1724 08:13:32 SQL Execute: Microsoft Access Driver (*.mdb) - INSERT INTO
suBStatic(B0110,I9999 ,B0160,B0145,B0140) SELECT B0110,1 as I9999,B0160,B0145,
B0140 FROM B01 ORDER BY B0110
1725 08:13:32 SQL Vendor: ODBC - SQLAllocStmt
1726 08:13:32 SQL Vendor: ODBC - SQLExecDirect
1727 08:13:32 SQL Vendor: ODBC - SQLError
1728 08:13:32 SQL Error: Microsoft Access Driver (*.mdb) - [Microsoft]
[ODBC Microsoft Access 驱动程序] 参数不足,期待是 1。
1729 08:13:32 SQL Vendor: ODBC - SQLError
1730 08:13:32 SQL Error: Microsoft Access Driver (*.mdb) - Unmapped SQL
Error Code: -3010
1731 08:13:32 SQL Stmt: Microsoft Access Driver (*.mdb) - Reset
1732 08:13:32 SQL Vendor: ODBC - SQLFreeStmt
其中:suAAStatic、suBStatic均是临时表,序号1732是程序执行到不能动时的最后语
句。
小弟初涉江湖,不知规矩,失礼之处,还请各位大虾见谅!现将大洋200双手奉上(举
过头顶),望笑纳!
小弟有一难题:在一MIS系统(Access库,DELPHI开发,无源代码)中作统计报表,原来
做的挺好,后来小弟将数据导出到PARADOX中,尔后又导入到Access中,却发现一部份(大
约有一半左右,均是如下提示)统计报表不能用了,提示:“General SQL error:
[Microsoft][ODBC Microsoft Access 驱动程序] 参数不足,期待是1”,用SQL Monitor
跟踪(Trace Options全部选中),最后几句是这样的:
1715 08:12:10 SQL Execute: Microsoft Access Driver (*.mdb) - Update
suAAStatic LEFT JOIN UsrA88 ON suAAStatic.A0100=UsrA88.A0100 Set
suAAStatic.C8801=UsrA88.C8801 WHERE UsrA88.I9999=(SELECT MAX(I9999) FROM UsrA88
WHERE UsrA88.A0100=suAAStatic.A0100)
1716 08:12:10 SQL Vendor: ODBC - SQLAllocStmt
1717 08:12:10 SQL Vendor: ODBC - SQLExecDirect
1718 08:13:32 SQL Vendor: ODBC - SQLNumResultCols
1719 08:13:32 SQL Vendor: ODBC - SQLRowCount
1720 08:13:32 SQL Data In:MicrosoftAccessDriver(*.mdb)-Rows affected=17096
1721 08:13:32 SQL Stmt: Microsoft Access Driver (*.mdb) - Close
1722 08:13:32 SQL Vendor: ODBC - SQLFreeStmt
1724 08:13:32 SQL Execute: Microsoft Access Driver (*.mdb) - INSERT INTO
suBStatic(B0110,I9999 ,B0160,B0145,B0140) SELECT B0110,1 as I9999,B0160,B0145,
B0140 FROM B01 ORDER BY B0110
1725 08:13:32 SQL Vendor: ODBC - SQLAllocStmt
1726 08:13:32 SQL Vendor: ODBC - SQLExecDirect
1727 08:13:32 SQL Vendor: ODBC - SQLError
1728 08:13:32 SQL Error: Microsoft Access Driver (*.mdb) - [Microsoft]
[ODBC Microsoft Access 驱动程序] 参数不足,期待是 1。
1729 08:13:32 SQL Vendor: ODBC - SQLError
1730 08:13:32 SQL Error: Microsoft Access Driver (*.mdb) - Unmapped SQL
Error Code: -3010
1731 08:13:32 SQL Stmt: Microsoft Access Driver (*.mdb) - Reset
1732 08:13:32 SQL Vendor: ODBC - SQLFreeStmt
其中:suAAStatic、suBStatic均是临时表,序号1732是程序执行到不能动时的最后语
句。
小弟初涉江湖,不知规矩,失礼之处,还请各位大虾见谅!现将大洋200双手奉上(举
过头顶),望笑纳!