Published on InterSystems Developer Community (https://community.intersystems.com)

Home > &sql(sql query ) not executing in Extended Business Componets Classes

Question
prashanth ponugoti · Sep 21, 2021

&sql(sql query ) not executing in Extended Business Componets Classes

Hi Community

I have extended my operation class from Ens.BusinessOperation class . I want to execute below sql on cache.

&sql(Select demoVersion into :DemoVersion from demointerface.DemoInstances where ID=:demoID)

this line not even giving error.

Please suggest me how to make sure my sql query should work everytime , when i call the class method

Same code is working fine in production but not working in local:(

Thanks a lot

Prashanth Ponugoti
 

#SQL #InterSystems IRIS
Product version: IRIS 2020.1
$ZV: HS-2020.1

Source URL:https://community.intersystems.com/post/sqlsql-query-not-executing-extended-business-componets-classes