informix odbc connection slow to open in asp.net -


i have application takes long time open odbc connections (like 20 sec) takes forever using arcmap , arcsde

but when try connection on odbc data source administrator, tests fast

does have idea of causing this?

btw application works fine in computer database

thanks.

in odbc administrator can enable tracing. compare trace file both slow , fast machine. if there "fast" open machine using odbc administrator , "slow" app try other ways open such connection. try use other tool such querytool (free trial), or create simple script in python win32 extension. in python (i recommend active python has win32 included) can open odbc with:

import odbc import time  t_start = time.time() conn = odbc.odbc('db_alias/user/passwd') t_stop = time.time() print('open: %.3f [ms]' % (t_stop-t_start)) cursor = conn.cursor()  cursor.execute("select first 1 dbinfo('version','full') systables;") row in cursor.fetchall():     print('[%s]' % (row[0])) 

(note informix specific version select)


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -