title: VB.net Timeout Expired error with update query
body: <pre><code>Dim mm1 As Byte()
  Dim mm2 As Byte()
  Image2Byte(slogo.Image, mm1)
  Image2Byte(ssign.Image, mm2)
  Dim cmdupd As New SqlCommand("update config set clinicname=@clinicname,address=@address,doctorname=@doctorname,doctoredu=@doctoredu,mobile=@mobile,email=@email,regno=@regno,logo=@logo,sign=@sign where sno=@sno", sqlConn)
  cmdupd.Parameters.AddWithValue("@clinicname", clinicname.Text)
  cmdupd.Parameters.AddWithValue("@address", address.Text)
  cmdupd.Parameters.AddWithValue("@doctorname", doctorname.Text)
  cmdupd.Parameters.AddWithValue("@doctoredu", doctoredu.Text)
  cmdupd.Parameters.AddWithValue("@regno", regno.Text)
  cmdupd.Parameters.AddWithValue("@mobile", mobile.Text)
  cmdupd.Parameters.AddWithValue("@email", email.Text)
  cmdupd.Parameters.AddWithValue("@logo", mm1)
  cmdupd.Parameters.AddWithValue("@sign", mm2)
  cmdupd.Parameters.AddWithValue("@sno", 1)
  cmdupd.ExecuteNonQuery()
  </code></pre>
  
  <p>this code giving timeout expired error while insert command with same parameters work even when i give update command in sql management studio its works there but it stucks here in vb.net i searched all over internet but no solutions yet</p>