Problem with Large Query Returns from MS-SQL



Hello,

I am writing an application that is using DBI to access a MS SQL database
hosted on a remote server. I think I am having trouble with larger result
sets.

For example:

If I do

$stmt = "SELECT * FROM tableA";

Where where tableA is around 10 rows, then my test script returns all of the
rows in the table and prints them out to the user on the browser.

However, if I do:

$stmt = "SELECT * FROM tableB";

Where tableB is around 6000 rows, the script does not produce any results
and continues with the rest of the script with an empty result set. Even if
I put conditions on the query for the large table that would return only 2
or 3 rows, the result set is not returned.

Does DBI have some kind of default timeout setting that breaks off after
waiting for a query result? If so, can I alter it somewhere?

I should also mention that all of the queries I am trying in the script work
fine when I directly call them on the database.

Thank you,

Jordan

Relevant Pages

  • Re: Problem with Large Query Returns from MS-SQL
    ... I am writing an application that is using DBI to access a MS SQL database ... Where tableB is around 6000 rows, the script does not produce any results ... I put conditions on the query for the large table that would return only 2 ...
    (perl.dbi.users)
  • Re: Problem with Large Query Returns from MS-SQL
    ... I am writing an application that is using DBI to access a MS SQL database ... Where where tableA is around 10 rows, then my test script returns all of the ... I put conditions on the query for the large table that would return only 2 ...
    (perl.dbi.users)
  • Re: DBD::CSV - UPDATE corrupts data!
    ... I stumbled over somthing very strange: When I try to update data in a table, the input parameters are going into the right fields - exept the first data row in the table / file. ... Below is a script which demonstrate the thing. ... Running the code below copied and pasted on Linux 2.6.26.5, Perl 5.8.8, DBI 1.607, DBD::CSV 0.20, both runs deliver the same result from your first run. ...
    (perl.dbi.users)
  • Re: DBD::Oracle problem with bind_param_inout and UTF-8
    ... my $uidpwd = 'usr/pwd@db'; ... Using DBI 1.605 and DBD::Oracle 1.23 ... Sym = € ... Consider the following script ... ...
    (perl.dbi.users)
  • Re: Apache, Oracle, Perl DBI Problems
    ... I believe at the start of every perl cgi script interfacing ... 'perl dbi oracle'. ...
    (perl.dbi.users)