How do I migrate stored procedures with return status from SQL Server/Sybase to PostgreSQL

0

While migrating from SQL Server or Sybase database to PostgreSQL, how do you convert a stored procedure with return status and check if procedure call is successful.

Sample example: EXEC @return_status = sample_proc

AWS
demandé il y a 4 ans494 vues
1 réponse
0
Réponse acceptée

If there is no need for transactional level commit or rollback statements, then you can opt to make it Function in PostgreSQL and Return Status code as per Execution logic. Function in PostgreSQL should suffice most of cases as compared to Procedure in commercial database engines.

répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions