Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need sql print statements to be logged in Flyway logs #496

Closed
flyway opened this issue Jun 25, 2013 · 1 comment
Closed

Need sql print statements to be logged in Flyway logs #496

flyway opened this issue Jun 25, 2013 · 1 comment

Comments

@flyway
Copy link
Collaborator

flyway commented Jun 25, 2013

Original author: kavithap...@gmail.com (May 27, 2013 05:49:27)

I have an SQL stored procedure which prints a line when an exception occurs. But I am not getting any print statements in the Flyway logs, even though the DEBUG mode is ON.

BEGIN TRANSACTION
IF OBJECT_ID('dbo.sp_Test') IS NOT NULL
BEGIN
BEGIN TRY
EXEC dbo.sp_Test
END TRY
BEGIN CATCH
PRINT 'Error occured';
END CATCH
END
COMMIT TRANSACTION

Flyway version: 2.0.3
DBMS Type: SQlServer 2008

Request you to please provide a fix for this issue as it is necessary to track the status of executed scripts.

Original issue: http://code.google.com/p/flyway/issues/detail?id=501

@fsopjani
Copy link

Microsoft Server 2010 as well please, I have the same request, want to log the print outputs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant