I am trying to call a MS SQL stored procedure form php.
I have tested the stored procedure by itself in management studio with hard coded parameters and was able to get it to execute with the expected results.
However when attempt to call it from php i get these errors.
Warning: mssql_execute() [function.mssql-execute]: stored procedure execution failed in C:\xampp\htdocs\index.php on line 145
Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\index.php on line 146
in the code I am posting line 145 is the mssql_execute command.
any help would be appreciated.
$userQuery = "select top 1 id from bravo_biometric_batch order by id desc";
$result = mssql_query($userQuery,$DB);
$bravo_biometric_batch_id = mssql_result($result,0,0);
$company_year_id = 237;
$date = date("Ymd");
$server_file_name = "e:\\bravo_csv\\".$filename;
$csv_proc_name = mssql_init('bulk_insert_bravo_csv',$DB);
mssql_bind($csv_proc_name, '@data_csv_file',$server_file_name,SQLVARCHAR, false,false,200);
mssql_bind($csv_proc_name, '@bravo_biometric_batch_id',$bravo_biometric_batch_id, SQLINT2, false,false, 10);
mssql_bind($csv_proc_name, '@company_year_id',$company_year_id, SQLINT2, false,false,10);
mssql_bind($csv_proc_name, '@upload_date',$date, SQLVARCHAR, false,false,20);
mssql_execute($csv_proc_name);