Article ID: 192718
Article Last Modified on 5/17/2007
Option Explicit Const SUCCESS = 999 Public Function WaitForAllotedtime(ByVal WaitTime As Integer) As _ Integer Pause (WaitTime) 'Introduce a delay simulating a long running query WaitForAllotedtime = SUCCESS End Function Sub Pause(ByVal nSecond As Single) Dim t0 As Single t0 = Timer Do While Timer - t0 < nSecond ' This loop introduces the delay of Dim dummy As Integer ' nSecond using the Timer function. dummy = DoEvents() If Timer < t0 Then t0 = t0 - CLng(24) * CLng(60) * CLng(60) End If Loop End Sub
Private Sub Command1_Click()
Dim rs As New RDS.DataSpace
Dim obj As Object
Dim i As Integer
rs.InternetTimeout = 305000 ' This is in milliseconds.
Set obj = rs.CreateObject("RDSTimeOutTestObj.Class1", _
"http://<your server name>")
i = obj.WaitForAllotedTime(301)'301 seconds, cross the 5 min barrier
MsgBox i ' Should get 999 indicating success.
End Sub
REGEDIT4
;This entry should be on one line
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC
\Parameters\ADCLaunch\RDSTimeOutTestObj.Class1]
166277 HOWTO: Create a VB Component that Returns a Recordset in RDS
microsoft.public.ado.rdsRemote Data Services version 1.5 Readme.txt
Keywords: kbbug kbdatabase kbfix kbmdacnosweep KB192718