There sre troubles connecting to MSSQL7 from Linux box.

Currently we are using PHP4 and sybase_ functions. Small queries work fine but then there are about 250-300 rows PHP stops working (invalid response, duplicate rows, etc). well, it works *sometimes*, but...

And one more thing: it is impossible to make inserts or updates.

Is there some way to make a reliable connection?