Search code examples
phpsql-server-2008

[Microsoft][SQL Server Native Client 11.0]Shared Memory Provider: Timeout error [258]


Good day.

I have a website running on PHP5. All queries are executed using Sql Server.

When I execute a query, I encounter the following error:

[Microsoft][SQL Server Native Client 11.0]
Shared Memory Provider: Timeout error [258]

How can I fix this error?


Solution

    • This error is probably caused by a very slow connection or SQL query taking a long time.
    • It is not an SQL Server problem.
    • Try extending the timeout value in your connectionString in PHP.

      See this previous answer

    You need to change some setting in your php.ini : upload_max_filesize = 2M ;or whatever size you want

    max_execution_time = 60 ; also, higher if you must

    Were your PHP.ini is depends on your enviroment