HomeSQL ServerSQL Server Error Msg 124 – CREATE PROCEDURE contains no statements

SQL Server Error Msg 124 – CREATE PROCEDURE contains no statements

In this blog post, let’s learn about the error message “124 – CREATE PROCEDURE contains no statements.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

124 – CREATE PROCEDURE contains no statements.

Reason for the Error

SQL Server Error Msg 124 occurs when you attempt to create a stored procedure with no executable statements. In other words, when you create a stored procedure, it must contain at least one SQL statement to be executed when it is called. If you attempt to create a stored procedure without any executable statements, SQL Server will return Error Msg 124.

Solution

To fix this error, you need to ensure that your stored procedure contains at least one SQL statement that can be executed when the procedure is called.

Leave a Reply

You May Also Like

When dealing with a relational database management system (RDBMS) like SQL Server, compatibility level is an important concept to understand....
In this blog post, let’s learn about the error message “49975 – Unable to load controller client certificate due to...
In this blog post, let’s learn about the error message “49973 – Cannot remove tempdb remote file to local tempdb...