I'm trying to get hammerdb running on my laptop so I can test this. However, having looked at the code, the following needs to be done:
- DB access needs to be moved outside of the windorm classess and possible into a separate DLL
- using() blocks need to be utilised for the SqlCommand and SqlReader objects.
- SqlCommand.Parameters.AddWithValue() should be used
- Thread.Start() should never be called. Task parallel library should be used
My first code commit will probably include the last three things.
I'm trying to get hammerdb running on my laptop so I can test this. However, having looked at the code, the following needs to be done:
My first code commit will probably include the last three things.