|
为何修改了lrd_open_connection的参数还是报错、:
Action()
{
lrd_init(&InitInfo, DBTypeVersion);
lrd_open_context(&Ctx1, LRD_DBTYPE_ODBC, 0, 0, 0);
lrd_open_context(&Ctx2, LRD_DBTYPE_ODBC, 0, 0, 0);
lrd_db_option(0, OT_ODBC_CP_OFF, 0, 0);
lrd_alloc_connection(&Con1, LRD_DBTYPE_ODBC, Ctx2, 0 /*Unused*/, 0);
lrd_db_option(Con1, OT_ODBC_LOGIN_TIMEOUT, (void FAR const *)15, 0);
lrd_open_connection(&Con1, LRD_DBTYPE_ODBC, "", "", "","DRIVER=SQL SERVER;SERVER=;UID=WD=;DATABASE=", Ctx1, 1, 0);
lrd_free_connection(&Con1, 0 /*Unused*/, 0);
return 0;
}
Action.c(5): lrd.c/fjInitDB: Using the "30" entry in section [ODBC_WINNT] in the "lrd.ini" file ("C:\Program Files\Mercury\LoadRunner\bin\lrdb32.dll")
Action.c(18): lrd_open_connection: 错误,返回代码=LRDE2041 |
|