Greetings, i'm having a problem on inserting all my items from listview to my database using stored procedure. heres my code.
Dim lvItem As ListViewItem
For Each lvItem In ListView1.Items
With dbComm
.AddParameter("@details", lvItem.Text, SqlDbType.VarChar)
.ExecuteStoredProcedure("insertRecord")
If .Success = False Then
MsgBox("Record failed to save.")
Else
MsgBox("Record Saved.")
End If
End
Here's my code in stored proc
INSERT INTO tblRecord (details)
VALUES (@details)