InterSystems IRIS TSQL Code 1050 This syntax is only allowed within the s

In this post, you’ll learn about the SQL error code 1050 in InterSystems IRIS database the reason why you are receiving the TSQL message when using the InterSystems IRIS data platform

Error Code :

1050

Reason for the Error code 1050 in InterSystems IRIS DBMS

This syntax is only allowed within the stored procedure sp_executesql.