Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inserting using dataset extremely slow

Status
Not open for further replies.

michelleHEC

Programmer
Oct 20, 2003
95
US
I am using the dataadapter and dataset to insert rows into my sql table but it is extremely slow on the da.fill and the da.update what am i doing wrong. here is the code

Me.daNet.Fill(Me.DsNet)
Dim t As DataTable
t = Me.DsNet.Tables("Nettrack")
Dim myrow As DataRow
myrow = t.NewRow()
myrow("ReqDate") = strReqDate
myrow("ReqTime") = strReqTime
myrow("IP") = strIP
myrow("URL") = strURL
t.Rows.Add(myrow)
Dim pdsIR As DataSet
pdsIR = Me.DsNet.GetChanges(DataRowState.Added)

If Not pdsIR Is Nothing Then
Me.daNet.Update(pdsIR)

End If

Me.DsNet.AcceptChanges()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top