|
使用performer测试ODBC性能时搁浅,想各位潜水的高手求教
问题如下:
1.能正常连接到数据源
2.使用select语句能正常从数据源表中获取到数据记录
3.使用insert时,调试脚本,performer报错如下"OdbcExecute(ODBC: 5 - ODBC error, HYC00 (106) : [Microsoft][ODBC Microsoft Access Driver]¿ÉÑ¡µÄ¹¦ÄÜδʵÏÖ )"
测试环境:
os:windows xp sp2
access2002
odbcdriver:microsoft access driver 4.00.6304.00
performer 7.0
用于输入插入的脚本语句如下:
OdbcOpen(cCursor, hDbc);
OdbcPrepare(cCursor, sqlInsert);
OdbcBind(cCursor, ":1", SQL_C_CHAR,50);
OdbcBind(cCursor, ":2", SQL_C_LONG);
OdbcSetString(cCursor, ":1", "Bob", 1);
OdbcSetInt(cCursor, ":2", 25, 1);
OdbcSetString(cCursor, ":1", "Marcy", 2);
OdbcSetInt(cCursor, ":2", 33, 2);
OdbcExecute(cCursor);
sql语句如下:
dclsql
sqlInsert:
INSERT INTO employee (name,age) VALUES (?,?); |
|