Saturday, February 11, 2017

Typical Issue with SQL server Agent-- Agent Jobs not starting internally

Today I faced a typical isue with SQL agent.

When I am invkoing a job (by right clicking on the job and selecting start) it is displaying as executing. But I cannot find any proces ID related to it in the sysprocesses.

When I click on the job history also, I cannot find the history for that job.

When checked in the SQL Agent log file foudn below messages.

![298] SQLServer Error: 87, SQL Server Network Interfaces: Connection string is not valid [87]. [SQLSTATE 08001]
! [165] ODBC Error: 0, Login timeout expired [SQLSTATE HYT00]
![298] SQLServer Error: 87, A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [SQLSTATE 08001]
! [382] Logon to server '' failed (ConnLogJobHistory)
! [298] SQLServer Error: 87, SQL Server Network Interfaces: Connection string is not valid [87]. [SQLSTATE 08001]
! [165] ODBC Error: 0, Login timeout expired [SQLSTATE HYT00]
! [298] SQLServer Error: 87, A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [SQLSTATE 08001]
! [382] Logon to server '' failed (ConnAttemptCachableOp)
! [298] SQLServer Error: 87, SQL Server Network Interfaces: Connection string is not valid [87]. [SQLSTATE 08001]
! [165] ODBC Error: 0, Login timeout expired [SQLSTATE HYT00]
! [298] SQLServer Error: 87, A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [SQLSTATE 08001]
! [382] Logon to server ''failed (ConnLogJobHistory)
! [298] SQLServer Error: 87, SQL Server Network Interfaces: Connection string is not valid [87]. [SQLSTATE 08001]
! [298] SQLServer Error: 87, SQL Server Network Interfaces: Connection string is not valid [87]. [SQLSTATE 08001] "

Based on the above error log checked the Aliases under SQL Ntive client cofiguration in configuration manager.

Alias was created giving wrong port number, so SQL was not able to connect to SQL instance.

After rectifying the alias, my jobs worked without any issues.

No comments:

Post a Comment