select statement fails
am 31.08.2007 04:14:36 von John DePasqualeThis is a multi-part message in MIME format.
--===============0561264520==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C7EB74.AD92FFF6"
This is a multi-part message in MIME format.
------_=_NextPart_001_01C7EB74.AD92FFF6
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
greetings all,
I think I have a case of too much data being returned to a perl script,
but I'm not certain.
using perl 5, DBI:ODBC, MS-SQL and IIS 6:
=20
executing the following code:
=20
$sth =3D $dbh->prepare("select field1 from table ") || &failed( "prep
failed" );
$exec =3D $sth->execute() || &failed( "exec failed" );
=20
correctly returns 170 rows of data. but if I replace the field name with
*, as in:
=20
$sth =3D $dbh->prepare("select * from table ") || &failed( "prep failed"
);
$exec =3D $sth->execute() || &failed( "exec failed" );
=20
it returns no data, but neither does either statement fail. the table
contains 160 fields.
=20
can the script be overwhelmed with too much data, and/or are there
limits of field counts or return-set size, and if so can they be
managed? I have a hard time believing perl can't handle this table.
any ideas greatly appreciated. thanks.
=20
John DePasquale
IT Manager
Law Offices of James Sokolove
1340 Centre Street - Suite 102
Newton, MA 02459
Direct line: 617-467-6932
Fax: 617-964-4336
This email is intended solely for the use of the individual to whom it
is addressed and may contain information that is privileged,
confidential or otherwise exempt from disclosure under applicable law.
If the reader of this email is not the intended recipient or the
employee or agent responsible for delivering the message to the intended
recipient, you are hereby notified that any dissemination, distribution,
or copying of this communication is strictly prohibited. If you have
received this communication in error, please immediately notify us by
telephone and return the original message to us at the listed email
address. Thank You.
=20
------_=_NextPart_001_01C7EB74.AD92FFF6
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
charset=3Dus-ascii">
name=3D"place"/>
name=3D"PostalCode"/>
name=3D"State"/>
name=3D"City"/>
name=3D"Street"/>
name=3D"address"/>
name=3D"PersonName"/>
style=3D'font-size:10.0pt;
font-family:Arial'>greetings all,
style=3D'font-size:10.0pt;
font-family:Arial'>I think I have a case of too much data being returned =
to a
perl script, but I’m not certain.
style=3D'font-size:10.0pt;
font-family:Arial'>using perl 5, DBI:
6:
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>executing the following =
code:
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>$sth =3D $dbh->prepare("select field1 from =
table ")
|| &failed( "prep failed" );
style=3D'font-size:10.0pt;
font-family:Arial'>$exec =3D $sth->execute() || &failed( =
"exec failed"
);
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>correctly returns 170 rows of data. but if I replace =
the
field name with *, as in:
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>$sth =3D $dbh->prepare("select * from table =
") ||
&failed( "prep failed" );
style=3D'font-size:10.0pt;
font-family:Arial'>$exec =3D $sth->execute() || &failed( =
"exec failed"
);
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>it returns no data, but neither does either statement =
fail.
the table contains 160 fields.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>can the script be overwhelmed with too much data, =
and/or are
there limits of field counts or return-set size, and if so can they be =
managed?
I have a hard time believing perl can’t handle this =
table.
style=3D'font-size:10.0pt;
font-family:Arial'>any ideas greatly appreciated. =
thanks.
style=3D'font-size:
12.0pt'>
face=3D"Times New Roman">
style=3D'font-size:10.0pt;color:navy'>John
DePasquale
Roman">
style=3D'font-size:10.0pt;color:navy'>IT Manager
color=3Dnavy>
style=3D'color:navy'>
Roman">
style=3D'font-size:10.0pt;color:navy'>Law Offices of
Sokolove
style=3D'color:navy'>
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"
w:st=3D"on">
style=3D'font-size:10.0pt;color:navy'>1340 Centre =
Street
–
style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: =
url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"
w:st=3D"on">
102
color=3Dnavy>
color=3Dnavy face=3D"Times New Roman">
style=3D'font-size:10.0pt;color:navy'>Newton
size=3D2 color=3Dnavy>, =
Roman">
style=3D'font-size:10.0pt;color:navy'>Direct line: =
617-467-6932
Roman">
style=3D'font-size:10.0pt;color:navy'>Fax: =
617-964-4336
color=3Dnavy>
style=3D'font-size:7.5pt;font-family:"Microsoft Sans Serif"'>This email =
is
intended solely for the use of the individual to whom it is addressed =
and may contain
information that is privileged, confidential or otherwise exempt from
disclosure under applicable law. If the reader of this email is not the
intended recipient or the employee or agent responsible for delivering =
the
message to the intended recipient, you are hereby notified that any
dissemination, distribution, or copying of this communication is =
strictly
prohibited. If you have received this communication in error, please
immediately notify us by telephone and return the original message to us =
at the
listed email address. Thank You.
face=3D"Microsoft Sans Serif">
style=3D'font-size:7.5pt;font-family:"Microsoft Sans =
Serif"'>
style=3D'font-size:
12.0pt'>
------_=_NextPart_001_01C7EB74.AD92FFF6--
--===============0561264520==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0561264520==--