Russ has asked for the wisdom of the Perl Monks concerning the following question:
I had been trying to get a "native" connection to MS SQL 7 via freetds, but it caused me much grief. Instead I went with an ODBC connection using the openlinksw.com available drivers. This is fine and dandy.
My true problem lies hidden deep within the error_log now.
When I run particular fetchrow_hashref (yeah, yeah, I know about problems with it so I don't wanna hear use arrayref or array, I wanna hear answers to MY question. I have also had the same problem with fetchrow_array at times anyway.) it ends up giving this error:
DBD::ODBC::st_fetchrow_hashref failed: [OpenLink][ODBC][Driver]Function sequence error (SQL-S1010)(DBD: st_fetch/SQLFetch err=-1) at /path/to/filename line <i>n</i>
So, my fellow monks, I wish to ask not why I should use fetchrow_array instead of fetchrow_hashref. That information is easily obtained.
My real question is, why does the fetch itself fail? As stated above, I've seen this problem with all types of fetchrow.
I'm confused about what the Function sequence error is. During my testing, I've run this through 'perl -d' and can give you a final piece of information. It does fetch at least once in all cases. It may even fetch more than once in some cases. But it does fail after a subsequent number of fetches.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: DBD::ODBC problem.
by barndoor (Pilgrim) on Aug 09, 2000 at 13:27 UTC | |
by Corion (Patriarch) on Aug 09, 2000 at 13:36 UTC | |
by PsychoSpunk (Hermit) on Aug 09, 2000 at 21:05 UTC | |
|
Re: DBD::ODBC problem.
by agoth (Chaplain) on Aug 09, 2000 at 12:15 UTC | |
by PsychoSpunk (Hermit) on Aug 09, 2000 at 21:01 UTC | |
by agoth (Chaplain) on Aug 10, 2000 at 13:06 UTC |