|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-30 14:57 UTC] fmk@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 06:00:02 2025 UTC |
mssql_query() can't fetch result from server if I use sql server variables in query. For example this script: <?php mssql_connect([server],[user],[password]) $sql_result=mssql_query("declare @kala int;select @kala=5;delete from [table] where field1=@kala"); $sql_result2=mssql_query("select * from kasutajad"); ?> If I turned error severity to 0 I saw following error:MS SQL error: Attempt to initiate a new SQL Server operation with results pending. (severity 7) in c:\htdocs\sqltest.php on line 4 ...but the first query has no result to fetch...