I have this error while Connect SQL SERVER DATABASE for LARAVEL PROJECT

Ravi M 0 Reputation points
2025-02-25T11:18:05.84+00:00

1 vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:66

  PDOException::("SQLSTATE[08001]: [Microsoft][ODBC Driver 18 for SQL Server]TCP Provider: Timeout error [258]. ")
```  2   vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:66

```yaml
  PDO::__construct("sqlsrv:Server=192.168.XX.XX,8080;Database=test;TrustServerCertificate=true", "sa", Object(SensitiveParameterValue), [])
```above Ip address I'm using the correct Ip address i just use that XX for Secure.   
what is the error anyone find out this Error ???
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
553 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Olaf Helper 46,196 Reputation points
    2025-02-25T15:10:13.23+00:00

    sqlsrv:Server=192.168.XX.XX,8080;

    You use IP port 8080 for SQL Server? That's more then uncommon, mostly 8080 is used for web server.

    Have you setup that port for SQL Server?

    Can you connect to with an other tool SSMS or Excel using the same connection informations?

    Default IP port for a standard SQL Server instance is 1433


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.