1

Here is my code on PHP:

$stmt = mssql_init('postget', $conn);
mssql_bind($stmt,'@IDPost',$IDPOST,SQLINT4);

if ($result = mssql_execute($stmt)) {
    while ($row = mssql_fetch_assoc($result)){
        echo $row["Content"];
    }
}

I'm recieving the error: Could not find stored procedure 'postget'.

The procedure is there, the connection is ok and the init returns a resource...

What am I doing wrong? Can someone help? Thanks in advance!

Zhorov
  • 28,486
  • 6
  • 27
  • 52
Libania Paes
  • 53
  • 1
  • 6
  • in the same solution are you also working with live db connection string? sometimes we forgot to change it so please check once. if sp is on both dev and live server then it could be another issue. – Pedram Nov 03 '15 at 04:25
  • Is your proceedure working properly from sql command editor ? – Sunny S.M Nov 03 '15 at 05:22
  • Yes, it is working properly... There is only the dev server for now... Ah, there is something else really weird: I tested using .net and it also cannot find the proc. If I put a query, it works. But the proc is not founded.... – Libania Paes Nov 06 '15 at 05:04

0 Answers0