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

An established connection was aborted after serveral INSERTS #32

Open
juniormayhe opened this issue Feb 11, 2018 · 1 comment
Open

An established connection was aborted after serveral INSERTS #32

juniormayhe opened this issue Feb 11, 2018 · 1 comment
Assignees

Comments

@juniormayhe
Copy link

juniormayhe commented Feb 11, 2018

I am having some errors when executing INSERT INTO several times (10 rounds of 10000):

  1. NuoDb.Data.Client.NuoDbSqlException:

1.1. InnerException of NuoDbSqlException:

IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.

1.1.1. InnerException of IOException:

SocketException: An established connection was aborted by the software in your host machine

Code:

using(var connection = new NuoDbConnection("Server=localhost;Database=MyDatabase;User=sa;Password=mypass;Schema=HOCKEY")) {
    connection.Open();
    foreach(var item in dictionary) {
        new NuoDbCommand($ "INSERT INTO Employee (Id, Name, ProjectId) VALUES ({item.Key}, '{item.Value.Name}', {item.Value.ProjectId})", connection).ExecuteNonQuery();
    }
    connection.Close(); //made no difference
}
@albymassari albymassari self-assigned this Feb 12, 2018
@albymassari
Copy link
Contributor

Thanks for reporting this; we will investigate the issue

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