I have an activation system at my application.
When user enter the key it log in to online host Mysql database and check if key exist to activate. This is going really slow 2 min per key. Is there any way for faster check and activation ?
Code :
For i As Integer = 0 To ds.Tables(0).Rows.Count - 1
If ds.Tables(0).Rows(i).Item(1).ToString = TextBox1.Text And ds.Tables(0).Rows(i).Item(2).ToString = "no" Then
Dim sqlquery1 = "UPDATE tablename SET used = 'Yes' WHERE id = '" & CInt(ds.Tables(0).Rows(i).Item(0).ToString) & "'"
If you need more code just let me know ill copy entire code