I'm having trouble duplicating this ... got any suggestions on how I should go about it? Here's my sample code which runs fine:
using (DbCommand cmd = cnn.CreateCommand())
{
StringBuilder text = new StringBuilder();
for (int n = 0; n < 1000; n++)
{
text.AppendFormat(@"insert into player(id, value) values({0}, 'foo');
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
-- This is an example of a really big command
", n);
}
cmd.CommandText = @"BEGIN IMMEDIATE;
CREATE TABLE player (id integer primary key, value varchar(50));" + text.ToString() + "COMMIT;";
cmd.ExecuteNonQuery();
}
The command being executed is 2,306,979 bytes long.