dbTalk Databases Forums  

do.until calls multiple instanaces

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss do.until calls multiple instanaces in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
allan.martin@gmail.com
 
Posts: n/a

Default do.until calls multiple instanaces - 04-08-2008 , 03:45 AM






Hello

I have an ActiveX script which loops round a recordset and for every
record calls another process. See below

************************************************** ************************************************** ********

do until SQLrs.EOF
n = SQLrs(0)
if n <> "0" then
call setStatusStart(SQLrs(0))
call getNotesData(SQLrs(0), getMaxTimeRT(SQLrs(0)))
end if
SQLrs.MoveNext
Loop

************************************************** ************************************************** ********

My issue is that from time to time, the recordset will contain > 1000
records meaning that call getNotesData(SQLrs(0),
getMaxTimeRT(SQLrs(0))) is actually invoked > 1000 times. The server
cannot handle this and crashes. I would like to configure it so that
the loop will not continue until the current instance of getNotesData
has completed.

Can anyone help or advise?

Many many thanks,

Allan

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.