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

SqlCommand StatementCompleted event never being fired #212

Closed
Charles-Gagnon opened this issue Sep 23, 2019 · 2 comments
Closed

SqlCommand StatementCompleted event never being fired #212

Charles-Gagnon opened this issue Sep 23, 2019 · 2 comments
Assignees

Comments

@Charles-Gagnon
Copy link

Describe the bug

We have this code that is creating a SqlCommand and then attaching an EventHandler to the StatementCompleted event. But this event is never being fired after calling ExecuteReaderAsync.

I've tried changing SET NOCOUNT and different types of queries but nothing changes.

Further technical details

Microsoft.Data.SqlClient version: 1.0.19249.1
.NET target: Core 2.0.0
Operating system: Windows 10 1903

@Charles-Gagnon
Copy link
Author

Here's a little sample app I wrote that has the same issue.

ConsoleApp3.zip

@cheenamalhotra
Copy link
Member

Closing issue as PR merged and fix released in 1.0.19269.1 Hotfix version.

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

No branches or pull requests

2 participants