Hey guys,
Im having a rather odd issue. Im trying to execute a stored procedure in sql using the qrules command ExecuteSqlQuery.
I set a fields value: Command
I use this formula( bear with me im going off of memory server is down for maintenance): concat("ExecuteSqlQuery /dsname=SQLConnect /sql=Execute dbo.prj_event_interface_imp3_insert @passed_prj_code = SingleQuoteDoubleQuote, my:prj, DoubleQuoteSingleQuoteDoubleQuote ) yes, where SQLConnect is located I have my data connection in place.
I may not have that exactly right but soon as i can ill post the actual expression, its along these lines though. Now for the problem. I succesfully got it to trigger the stored procedure and if i remember right it's with parameters. But we had some issues with our Query, we began to conduct testing, so i disabled the action rule(my ExecuteSqlQuery) and went to submit again. Expecting to see data in all my tables in SQL we found that the stored procedure we created was still being triggered. Our stored procedure statement contains a truncate for the two tables we intially submit to, An insert statement moves that data into our target DB before said truncate. With the rule disabled it should not be truncating nor inserting or anything in our stored procedure. So I then deleted the rule all together. Closed and reopened the form(the designer not just the preview). Opened, previewed and submit. Only to see that STILL our stored procedure was being executed. We've gone over all established data connections and inspected all our queries for anything that could have possibly be triggering this event. Nothing else points to it.
Any help you guys can come up would great. I know you guys are busy. Thank you in advance.