qrizan
qrizan

Reputation: 1

MSSQL Stored Procedures Laravel 5

How to run a stored procedure in laravel 5

I use:

DB::connection('sqlsrv')->select('exec SP_XXXX ?,?',array($a,$b));

error message :

SQLSTATE[IMSSP]: The active result for the query contains no fields.

stored procedure :

ALTER PROCEDURE [dbo].[SP_XXXX] (@FROMDATE DATETIME, @TODATE DATETIME)

Upvotes: 0

Views: 454

Answers (1)

Chatchai Plukchalee
Chatchai Plukchalee

Reputation: 11

You should not start naming the SP_.

Upvotes: 1

Related Questions