Re: How to get the ADO Connection 's RecordAffected Value

From: Norton (nortonwong_at_hotmail.com)
Date: 07/20/04


Date: Tue, 20 Jul 2004 18:07:50 +0800


Thx for your help ~

Regards,
Norton

"Val Mazur" <group51a@hotmail.com> wrote in message
news:OzRnlBgbEHA.2544@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> You cannot get multiple record affected values. I think most likely
provider
> will return the number of the affected records for the last statement (I
> could be wrong), so iRecordAffected variable should contain it. If it does
> not work and you need to get it, then you would need to execute statement
> separately
>
> --
> Val Mazur
> Microsoft MVP
>
>
> "Norton" <nortonwong@hotmail.com> wrote in message
> news:OLP2bxuaEHA.1248@TK2MSFTNGP11.phx.gbl...
> > Hi All,
> >
> > I am trying to execute multiple SQL Statement in one Connection.Execute
> > Method
> >
> > Such as
> > Dim sSQL as String
> > Dim iRecordAffected as integer
> >
> > sSQL = DeleteSQL & vbcrlf & InsertSQL
> > oConn.Comet.Execute(sSQL , iRecordAffected )
> >
> > How can i get the insert statement's Record Affected Value?
> >
> > Thx in advance
> > Regards,
> > Norton
> >
> >
> >
>
>



Relevant Pages

  • Re: windows update doesnt work at all, neither does auto updates
    ... > thx 4 all ur help........auto update just popped up with updates!! ... >> You should be keying in regsvr and not regsur (I suspect that this is ... >> Regards, ... >> Patti MacLeod ...
    (microsoft.public.windowsupdate)
  • Re: How to kill Excel Instance
    ... Thx a lot ... Regards, ... Rudy ... > Tom Ogilvy ...
    (microsoft.public.excel.programming)
  • RE: Addin, Funtion
    ... > now what I wanna do it's to have this formula into a funtion in a add in ... so I can use it on diferent workbooks that I used daily so I can save ... thx. ... >> Regards, ...
    (microsoft.public.excel.programming)
  • Re: Thread synchronization problem
    ... Thx. ... Best regards ... >> be actualy terminated few milliseconds after. ... > complex for such simple sync scenario ...
    (microsoft.public.dotnet.languages.csharp)