Home » SQL Server Error : 1005, Severity: 15. Line %d: Invalid procedure number (%d).

SQL Server Error : 1005, Severity: 15. Line %d: Invalid procedure number (%d).

sql server DBA 999

SQL Server Error : 1005 Details


SQL Server Error: 1005
Severity: 15
Event Logged or not: No
Description:
Line %d: Invalid procedure number (%d). Must be between 1 and 32767.
Severity 15 Description:
Indicates syntax errors in the Transact-SQL command.

Reading sql server error log location from SQL Query

Identifying SQL Server Error Log File used by SQL Server Database Engine can be done by reading SQL Server Error Logs. DBA can execute the XP_READERRORLOG extended stored procedure to read the SQL Server Error Log and search for its location used by the instance of SQL Server.

USE master
Go
xp_readerrorlog 0, 1, N'Logging SQL Server messages in file', NULL, NULL, N'asc'
Go

Solution for Resolving the Error

The above error is received when a function is called with the overloaded or wrong stored procedure syntax.

Make sure the procedure exists and procedure is not overloaded or timing out due to long running procedure…

SQL Server Error Code and solution summary


SQL Server Error: 1005
Severity: 15
Event Logged or not: No
Description:
Line %d: Invalid procedure number (%d). Must be between 1 and 32767.

Leave a Reply

Your email address will not be published. Required fields are marked *