I recently started using a Windows 7 box. I am trying to query a Sybase database using 32-bit ASE drivers (Adaptive Server Enterprise). The Sybase client installed on the machine is v15.5.
The issue is that when I query for small data I get correct result but if the result expected is more than 40 rows I am getting an error.
>>> x = smd.Query("select ric_code as ric, weight, adjusted_weight as adjweight,
currency as currency, close_price as last from v_temp_idx_comp where index_ric_
code='.HSI'")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "s:\quant\python\v1.0\smd.py", line 15, in Query
result = x.fetchall()
pyodbc.Error: ('HY000', 'The driver did not supply an error!')
I am not sure how to resolve this error. What steps can I take to debug this further? Can I use some command line tools to investigate further? how about isql? Will they use same underlying drivers?
FYI, there is no issues with the query. The query works very well on my previous machine which used Merant driver.
Any suggestions are welcome.