31-03-17, 08:05 PM
غيرة في الكود
ومن امس وانا اعمل بحث عن المشكله
ولازالت المشكله
اذا العدد كان 100 الى 800 سجل يقوم بتحديثه بنجاح
بس اذا كان عدد السجل التحديثي فوق
10222 وما فوق يعطيني مسج
مشكله غريبه حتى في البحث في قوقيل ما حصلت حل مناسب
ومن امس وانا اعمل بحث عن المشكله
كود :
ProgressBar1.Maximum = Me.DataGridView1.Rows.Count - 1
con.Open()
Dim i As Integer = 0
Using transaction = con.BeginTransaction()
'cmdCheckCount.Transaction = transaction
cmdInsert.Transaction = transaction
For Each dr As DataGridViewRow In DataGridView1.Rows
ProgressBar1.Value = i
Label6.Text = InsertedCount
'Label5.Text = ErrorCount
Call Me.addData(i)
i += 1
Next
transaction.Commit()
End Usingكود :
Private Sub addData(ByVal i As Integer)
Diagnostics.Debug.Print(i.ToString & " | " & "Start Add :" & Now.ToString("mm:ssss"))
cmdInsert.Parameters("@clublog_qsl_sent").Value = "Y"
cmdInsert.Parameters("@CALLop").Value = DataGridView1.Rows(i).Cells(0).Value
cmdInsert.Parameters("@DateNumber").Value = DataGridView1.Rows(i).Cells(4).Value
cmdInsert.Parameters("@time_on").Value = DataGridView1.Rows(i).Cells(5).Value
cmdInsert.ExecuteNonQuery()
Application.DoEvents()
InsertedCount += 1
End Subولازالت المشكله
اذا العدد كان 100 الى 800 سجل يقوم بتحديثه بنجاح
بس اذا كان عدد السجل التحديثي فوق
10222 وما فوق يعطيني مسج
كود :
10457 | Start Add :59:57
10458 | Start Add :59:57
10459 | Start Add :59:57
10460 | Start Add :59:57
SQLite error (5): database is locked
SQLite error (5): database is locked
SQLite error (5): database is locked
SQLite error (5): database is locked
SQLite error (5): database is locked
SQLite error (5): database is locked
SQLite error (5): database is lockedكود :
10230 | Start Add :54:02
10231 | Start Add :54:02
10232 | Start Add :54:02
10233 | Start Add :54:02
SQLite error (5): database is locked
SQLite error (5): database is locked
SQLite error (5): database is locked
SQLite error (5): database is locked
SQLite error (5): database is locked
SQLite error (5): database is lockedمشكله غريبه حتى في البحث في قوقيل ما حصلت حل مناسب

