PHP, Laravel, calling
$db->select("EXEC [dbo].[sp_StoredProc1] 1, 3, 1, '2016-06-12 00:00:00', '2016-09-12 00:00:00'");
RESULT - EMPTY ARRAY!!!
Calling the same function via SQL Server Management Studio:
EXEC [dbo].[sp_StoredProc1] 1, 3, 1, '2016-06-12 00:00:00', '2016-09-12 00:00:00'
RESULT - VALID TABLE.
Any idea, why this might happen is warmly appreciated