sql server - PHP Mssql multi query in a store procedure -
I have PHP scripts that execute the store process. So far, so good. Now I have a shop that executes two questions within the store process:
Remove from EXEC ('db.) .Debo. [Table]') EXEC ('INB IN [ DB] [Table] ([Colonel]) Value (1) ') If I call SP on php, then it only removes the content of the table and The first row does not include the line. (It appears that only the first Exec will be executed) I call the SP as a PP:
$ stmt = sqlsrv_query ($ connection, "EXEC my_sp"); ... ($ line = sqlsrv_fetch_array ($ stmt, SQLSRV_FETCH_ASSOC)) {...} Returning is not important to me at this time. I'm just thinking that only the first query is executed Why is it If the SP calls directly to the database then the query will be executed as expected. Is there an error message or something like this? Does anyone know how can I execute "execs" with a single php call to a SP?
Thanks for the help! V
I think you do not need to write EXEC (DB). [Table]] ') in the form of SP investigator EXEC () simply remove [DB] from .dbo [Table].
Comments
Post a Comment