Is there any known length restriction for the sql variable on sqlsrv_query? I have an application that sends a block of commands do SQL SERVER (insert into..., insert into..., etc). It works fine on Linux (mssql) but on Windows (sqlsrv) the last instructions are ignored. The sql command where the last instructions are lost has 4900 lines.
$qry_str = "";
for () {
$qry = "INSERT INTO tbl
(field1,
field2,
etc)
VALUES
('$val1',
'$val2',
etc)";
//echo "<pre>$qry</pre>";
$qry_str .= "$qry;\n";
}