TTConnection g_conn;
TTStatus tt_stat;
g_conn.Connect("DSN=ESCP_CACHE", tt_stat);
程序这样连接数据库会显示错误
 ERROR in TTConnection.cpp, line 157: TTConnection::Connect() -- while connecting to driver
[TimesTen][TimesTen 7.0.2.0.0 ODBC Driver]Data source name not found and no default driver specified
*** ODBC Error/Warning = IM002, TimesTen Error/Warning = 0
*** (connect string <DSN=ESCP_CACHE>)但是用ttisql ESCP_CACHE却能成功连接timesten,这是什么原因?