T
T
theSobis2021-03-23 11:40:16
PHP
theSobis, 2021-03-23 11:40:16

No connection to MSSQL database from PHP?

I run the script on the server ( https://infoboxcloud.ru/community/blog/windowshost... ), for a connection with MSSQL on a remote rdp with win 2003, and it gives me the following:

Connection failed, error: Array ( [0] => Array ( [0] => IMSSP [SQLSTATE] => IMSSP [1] => -49 [code] => -49 [2] => This extension requires the Microsoft ODBC Driver for SQL Server Access the following URL to download the ODBC Driver for SQL Server for x64: https://go.microsoft.com/fwlink/?LinkId=163712 [message] => This extension requires the Microsoft ODBC Driver for SQL Server.Access the following URL to download the ODBC Driver for SQL Server for x64: https://go.microsoft.com/fwlink/?LinkId=163712 ) )


We tried to install the driver, none of them got up on Windows 2003. How can I fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
theSobis, 2021-03-23
@theSobis

I put the driver on the server where puff, a new error:

Hello
Connection could not be established.
Server is not found or accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. See SQL Server Books Online for more information. [message] => [unixODBC][Microsoft][ODBC Driver 17 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. See SQL Server Books Online for more information. ) ) [unixODBC][Microsoft][ODBC Driver 17 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. See SQL Server Books Online for more information. ) ) [unixODBC][Microsoft][ODBC Driver 17 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. See SQL Server Books Online for more information. ) )

S
Stanislav Valsinats, 2021-03-23
@jesterOK

A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections.

And what do you not understand about this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question