Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

Launch stored procedure and triggers

$
0
0


Hello Experts,

 

I am having some questions about software architecture related to triggers and stored procedure.

 

In SQL server, you can execute a stored procedure from a Trigger.

It seams that this is not possible in SAP HANA.

 

First questions are:

Can you really not execute procedure from a trigger ?

Does someone knows why is this not possible ? Is there an improvement scheduled ?

Is there the equivalent of the SQL Server Message Broker on SAP HANA ?

 

Second question is :

I would like to execute my procedure automatically at start (when hana starts) or via scheduling.

But then, we have to choose between two problems :

  • If launched at start this means that my procedure will be using a "do while" + a pause
    • Does someone knows how to do that ? (the launch at start ; not the do while and pause)
  • If launched through an external scheduler, I must control that the external scheduler is not down or will not crash, I have to ensure that I won't launch two procedures at the same time etc ...
    • I know can do that with HDBSQL but this raise a lot of issues.

 

Has someone an idea that would allow the database engine to handle this kind of stuff by itself without having to think about a solution "out of the box" ?

 

Thanks in advance for any answer.

 

Regards,

 

Matthieu


Viewing all articles
Browse latest Browse all 4343

Trending Articles