The solution to the question was likely that the problem arose due to an issue other than what the questioner suspected, as I pointed out.
Main Topics
Browse All TopicsI get an error when a executing a SQL command if the command is greater than 512 characters. Is there a way around this? Roughly, I do:
$dbh = DBI->connect();
$sth = $dbh->prepare($513_char_sq
$sth->execute;
I am using FreeTDS.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: mjcoynePosted on 2007-08-19 at 17:53:20ID: 19727593
Are you sure that this is the cause of the error? I don't know about the Sybase or Microsoft SQL Server databases, but for MySQl, the limit is 1 GB:
refman/5.0 /en/packet -too-large .html)
"A communication packet is a single SQL statement sent to the MySQL server, a single row that is sent to the client, or a binary log event sent from a master replication server to a slave.
The largest possible packet that can be transmitted to or from a MySQL 5.0 server or client is 1GB. "
(http://dev.mysql.com/doc/
Is it likely these other databases would be so wildly different in their choice of maximum statement size allowed?