Target systems:
- Win95/remote MS SQL Server
- WinNT/remote MS SQL Server
- FreeBSD/local MySQL Server
For performance reasons, it would be useful to stuff multiple queries into a single communication to a remote MS SQL server through Perl. Something like:
INSERT INTO UberTable (Arg1,...ArgN) VALUES (Val1,...,ValN)
INSERT INTO UberTable (Arg1,...ArgN) VALUES (Val1,...,ValN)
INSERT INTO UberTable (Arg1,...ArgN) VALUES (Val1,...,ValN)
INSERT INTO UberTable (Arg1,...ArgN) VALUES (Val1,...,ValN)
Of course, each of the above lines would be delimited correctly for the intended interface.
Again: Sending n queries separately is causing a very inconvenient performance hit that would be removed by sending n queries in one fell swoop.
I don't know what module system will have the intended effect when used correctly. My current code base uses the DBI and DB::ODBC modules. Alas:
(DBI.pm inline documentation, slightly reformatted)
Multiple SQL statements may not be combined in a single statement handle ($sth), although some databases and drivers do support this (notably Sybase and SQL Server).
(end DBI.pm inline documentation)
If a more effective module system exists, name all that you immediately know of. Source code fragments are unnecessary, unless it's a creative application of the DBI module system.
- Win__: I would prefer existence on the ActivePerl port, but could rebuild Perl under MingW32 if necessary.
- FreeBSD: must be for the default installed version.
Thank you for your time.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.