![]() |
|
|
Published: Sunday, June 27, 1999
Computer Specs:
DECLARE @LOOP int SELECT @LOOP = 0 SET NOCOUNT ON WHILE @LOOP < 10000 BEGIN insert into tblStresstest(Name,Age,SSN,IsMale) SELECT 'Test Name',@LOOP/1000,@LOOP,1 SELECT @LOOP = @LOOP + 1 END SET NOCOUNT OFF
There was an unclusted primary key constraint on the The query used on the database was: The following commands were issued in the VB app:
For iCount = 1 To 5
objRS.Open strSQL, objConn, adOpenForwardOnly, adLockPessimistic
Do While Not objRS.EOF
objRS.MoveNext
Loop
objRS.Close
Next iCount
(The cursor type and locktype were, of course, changed for each run.) A total of ten runs were made for
each cursor type against the following locktypes:
Happy Programming!
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||