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
質問済み 4年前494ビュー
1回答
0
承認された回答

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.

回答済み 4年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ