B
Bill Schanks
VB.NET 2005
SQL Server 2000
I have a datagridview that users will update. When there are only a
few records the update is fine. However when they update 100-200 of
the rows the udpate can take 2+ Mins.
Is this normal performance, as the datagridview was not meant to
update this many records at once?
Here is the code I am using to save the data:
<<Snip>>
Me.Validate()
Me.Spoc_ev_resultsBindingSource.EndEdit()
Dim iUpdate As Integer = _
Me.Spoc_ev_resultsTableAdapter.Update(Me.RCT_EV_QADataSet.spoc_ev_results)
<<Snip>>
Here is the Stored Procedure that gets called:
ALTER procedure [dbo].[spoc_ev_results_update]
@ItemID int,
@Status_ID int,
@UserID int,
@Notes varchar(1000) = NULL
AS
UPDATE dbo.t_EV_ExcepVal_Accts
SET
Status_ID = @Status_ID,
Notes = @Notes,
LastMaintBy_ID = @UserID,
LastMaintDate = getdate()
WHERE
ID = @ItemID
SQL Server 2000
I have a datagridview that users will update. When there are only a
few records the update is fine. However when they update 100-200 of
the rows the udpate can take 2+ Mins.
Is this normal performance, as the datagridview was not meant to
update this many records at once?
Here is the code I am using to save the data:
<<Snip>>
Me.Validate()
Me.Spoc_ev_resultsBindingSource.EndEdit()
Dim iUpdate As Integer = _
Me.Spoc_ev_resultsTableAdapter.Update(Me.RCT_EV_QADataSet.spoc_ev_results)
<<Snip>>
Here is the Stored Procedure that gets called:
ALTER procedure [dbo].[spoc_ev_results_update]
@ItemID int,
@Status_ID int,
@UserID int,
@Notes varchar(1000) = NULL
AS
UPDATE dbo.t_EV_ExcepVal_Accts
SET
Status_ID = @Status_ID,
Notes = @Notes,
LastMaintBy_ID = @UserID,
LastMaintDate = getdate()
WHERE
ID = @ItemID