with nowait option in raiserror

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: habibi (smotrov2000_at_mail.ru)
Date: 06/15/04


Date: Tue, 15 Jun 2004 13:52:18 +0300

Hello! The next procedure:

CREATE proc habibi_ac_test
as
raiserror('Some message...',16,1) with nowait
WAITFOR DELAY '00:00:10'
select top 5 * from documents
GO

The client program use ADO to access data.
My client application raises error only after 10 seconds...
I think it will be immediately... or for whot i`m using "with nowait"
option ???
What wrong???

The pice of client code:

Dim cmd
Dim e
Set cmd = CreateObject("ADODB.Command")
Set cmd.ActiveConnection = conn
cmd.CommandText = "habibi_ac_test1"
cmd.CommandType = 4
Set rs = cmd.execute(, , adAsyncExecute)

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/


Relevant Pages

  • Re: WITH NOWAIT And SqlConnections InfoMessage
    ... PRINT 'blah' you can say SELECT 'blah' and process the message as a ... the RAISERROR command has an available "WITH NOWAIT" ... > immediately to the client". ... > (and thus the stored procedure) has completed. ...
    (microsoft.public.dotnet.framework.adonet)
  • "with nowait" option in raiserror
    ... raiserrorwith nowait ... The client program use ADO to access data. ... My client application raises error only after 10 seconds... ... Dim cmd ...
    (microsoft.public.sqlserver.programming)
  • with nowait option in raiserror
    ... raiserrorwith nowait ... The client program use ADO to access data. ... My client application raises error only after 10 seconds... ... Dim cmd ...
    (microsoft.public.access.adp.sqlserver)
  • with nowait option in raiserror
    ... raiserrorwith nowait ... The client program use ADO to access data. ... My client application raises error only after 10 seconds... ... Dim cmd ...
    (microsoft.public.sqlserver.programming)
  • Re: drop down list
    ... download the 'Report Workbook' sample. ... This shows how to use some drop-downs ... to provide parameters for formulas that access data on a different workbook ... down list, for example, if the client from east(drop down list got east, ...
    (microsoft.public.excel.misc)