I have just stared to learn C# 2 Weeks ago so I dont know much but right now I just want to make my first program I don't really care about the security flaw within ATM as I will fix these with time when I know a better solution.

So I got this error:

```
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Data.dll

Additional information: A severe internal connection error has occurred.

```

And I have been sitting with this error for 2 days now modifying my code and searching the internet for solutions with no luck. So I turn here as I see there are some experts here.

Code with error:

```
        using (SqlConnection con = new SqlConnection("server=SERVERIP,3306;Integrated Security=True;database=data;uid=USER;password=PASS"))
        {
            con.Open(); //ERROR HERE

            using (SqlCommand cmd = new SqlCommand("insert into info(Datum,Timmar,Rast) Values(@Datum,@Timmar,@Rast)", con))
            {
                cmd.Parameters.AddWithValue("@Datum", textBox1.Text);
                cmd.Parameters.AddWithValue("@Timmar", textBox2.Text);
                cmd.Parameters.AddWithValue("@Rast", textBox3.Text);
                cmd.ExecuteNonQuery();
                MessageBox.Show("Sparat!");
            }
         }

```

So basically what I am trying to do with this program is so that the data that the user types into the textboxes gets saved in the database.

When I type word with full capital letters I mean that it's something else there eg. Ip and password etc.