Re: Re: Calling MSSQL Stored Procedure
| From: | Alf Stockton | Date: | Fri, 16 Sep 2005 14:32:06 +0000 |
| Subject: | Re: Re: Calling MSSQL Stored Procedure | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-26346@lists.php.net to get a copy of this message | ||
Mark Rees wrote:
The type problem in not in PHP but in SQL Server. The sp expects an input parameter of type datetime, and it isn't getting one. http://www.php.net/function.mssql-query has the answer to this question, which is to supply the parameter as varchar and use CONVERT in the sp to change it into a datetime As other programs, not under my control, are already using that Stored Procedure altering it is really not a good idea.-- Regards, Alf Stockton www.stockton.co.za Good day for overcoming obstacles. Try a steeplechase. My email disclaimer is available at www.stockton.co.za/disclaimer.html