markjoe Posted March 5, 2008 Share Posted March 5, 2008 Hopefully this is enough to go on. PHP 5.2.5 connecting to SQL Server 2000. I have a fairly large union query that runs fine in SQL Query Analyzer in 1 minute 19 seconds. Run from PHP it fails with the last message being "Changed database context to 'DB NAME'". If I shorten the date range to a single day, it runs in PHP fine. This is how I am checking the date range: where datecol >= 17373 and datecol <= 17375 (date is integer date stamp in DB) I echoed the full query from the PHP script and pasted it in SQL Query Analyzer. Link to comment https://forums.phpfreaks.com/topic/94566-large-union-query-failing-from-php-works-in-sql-query-analyzer/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.